insert method
- String command
Inserts a new record into the database using the provided SQL command.
Returns the number of rows affected by the insert operation.
The command
parameter is the SQL command to be executed.
Example usage:
DatabaseService databaseService = DatabaseService();
await databaseService.insert('INSERT INTO users (id, name) VALUES (1, "Adit")');
Implementation
Future<int> insert(String command) async {
return await _db.rawInsert(command) as int;
}