gsdsdk / com.gsd.software.sdk.netconnector.sync.dfobject.dbwrapper / DbWrapper

DbWrapper

class DbWrapper :SqlDb

Created by Maksim Shumko on 2/19/2020.

Constructors

Name Summary
<init> DbWrapper(db: SupportSQLiteDatabase)
Created by Maksim Shumko on 2/19/2020.

Functions

Name Summary
delete fun delete(tableName:String, columnName:String, value:Any?):Unit
getRowCursor fun getRowCursor(tableName:String):SqlCursor
fun getRowCursor(tableName:String, columnName:String, value:String):SqlCursor
insert fun insert(tableName:String, contentValues:ContentValues):Unit
runInTransaction fun runInTransaction(body: (SqlDb) ->Unit):Unit
runRowCursorInBlock fun runRowCursorInBlock(tableName:String, block: (SqlCursor) ->Unit):Unit
fun runRowCursorInBlock(tableName:String, columnName:String, value:String, block: (SqlCursor) ->Unit):Unit
update fun update(tableName:String, contentValues:ContentValues, clause:String, arg:Any):Unit
upsert fun upsert(tableName:String, contentValues:ContentValues, columnName:String, value:String?):Unit