SqliteUpdateConditions class
sqlite database update nned conditions db is sqlite database the example is incomplate!!
db.insert('test', {"table_name": "zhang", "table_size": 12,'tid':1});
db.insert('test', {"table_name": "zhang", "table_size": 12,"tid":2});
}, updateMap: [
{ 'test':
SqliteUpdateConditions(updateNeedWhere: 'tid = ?', updateNeedcolumnKey: 'tid'
)
}
- Implemented types
Constructors
-
SqliteUpdateConditions({required String updateNeedWhere, required List<
String> updateNeedcolumnKey})
Properties
-
getUpdateNeedcolumnKey
→ List<
String> -
no setteroverride
- getUpdateNeedWhere → String
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
updateNeedcolumnKey
→ List<
String> -
all column are immutable
final
- updateNeedWhere → String
-
custom updaste int count = await db.update(tableTodo, todo.toMap(), where: '$updateNeedWhere = ?', whereArgs: [map[updateNeedcolumnKey]]);
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited