mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-29 21:48:45 +00:00
should fix lint errors
This commit is contained in:
parent
d933dc532b
commit
c502c70a21
@ -26,20 +26,39 @@ fun SQLiteDatabase.createTable(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Cursor.getString(columnName: String) = getString(
|
/**
|
||||||
getColumnIndex(columnName)
|
* @throws IllegalArgumentException
|
||||||
|
*/
|
||||||
|
fun Cursor.getString(columnName: String): String = getString(
|
||||||
|
getColumnIndexOrThrow(columnName)
|
||||||
)
|
)
|
||||||
|
|
||||||
fun Cursor.getLong(columnName: String) = getLong(
|
/**
|
||||||
getColumnIndex(columnName)
|
* @throws IllegalArgumentException
|
||||||
|
*/
|
||||||
|
fun Cursor.getShort(columnName: String): Short = getShort(
|
||||||
|
getColumnIndexOrThrow(columnName)
|
||||||
)
|
)
|
||||||
|
|
||||||
fun Cursor.getInt(columnName: String) = getInt(
|
/**
|
||||||
getColumnIndex(columnName)
|
* @throws IllegalArgumentException
|
||||||
|
*/
|
||||||
|
fun Cursor.getLong(columnName: String): Long = getLong(
|
||||||
|
getColumnIndexOrThrow(columnName)
|
||||||
)
|
)
|
||||||
|
|
||||||
fun Cursor.getDouble(columnName: String) = getDouble(
|
/**
|
||||||
getColumnIndex(columnName)
|
* @throws IllegalArgumentException
|
||||||
|
*/
|
||||||
|
fun Cursor.getInt(columnName: String): Int = getInt(
|
||||||
|
getColumnIndexOrThrow(columnName)
|
||||||
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @throws IllegalArgumentException
|
||||||
|
*/
|
||||||
|
fun Cursor.getDouble(columnName: String): Double = getDouble(
|
||||||
|
getColumnIndexOrThrow(columnName)
|
||||||
)
|
)
|
||||||
|
|
||||||
fun SQLiteDatabase.select(
|
fun SQLiteDatabase.select(
|
||||||
|
Loading…
Reference in New Issue
Block a user