execute method
- String command
Executes the given SQL command on the database.
This method takes a SQL command as input and executes it on the underlying database. It returns a Future that completes when the execution is finished.
Example usage:
DatabaseService databaseService = DatabaseService();
await databaseService.execute('CREATE TABLE users (id INT, name TEXT)');
Implementation
Future<void> execute(String command) async {
await _db.execute(command);
}