CRUDEngine
Functions
Link copied to clipboard
Link copied to clipboard
abstract fun <EntityType, PrimaryKey> create(tableName: String, primaryKey: PrimaryKey, entity: EntityType): Promise<PrimaryKey>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun <EntityType, PrimaryKey> read(tableName: String, primaryKey: PrimaryKey): Promise<EntityType>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun <PrimaryKey, ChangesType> update(tableName: String, primaryKey: PrimaryKey, changes: ChangesType): Promise<PrimaryKey>
Link copied to clipboard
abstract fun <PrimaryKey, ChangesType> updateOrCreate(tableName: String, primaryKey: PrimaryKey, changes: ChangesType): Promise<PrimaryKey>