createInMemory method

Future<SQLiteDatabase> createInMemory ({String password })

Create a memory-backed SQLite database.

Its contents will be destroyed when the database is closed.

Throws an SQLiteException if the database cannot be created.

See: https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#createInMemory(android.database.sqlite.SQLiteDatabase.OpenParams)

Implementation

static Future<SQLiteDatabase> createInMemory({String password}) {
  return openDatabase(':memory:', password: password);
}