DataSource constructor

const DataSource(
  1. String name, {
  2. int flags = sqlite.OPEN_READWRITE | sqlite.OPEN_CREATE,
  3. String? moduleName,
})

Create database object.

The flag is value final value of bit operator of the value from sqlite.OPEN_READWRITE, sqlite.OPEN_READONLY, sqlite.OPEN_MEMORY. By default, the flag value is set to sqlite.OPEN_READWRITE.

Implementation

const DataSource(
  this.name, {
  this.flags = sqlite.OPEN_READWRITE | sqlite.OPEN_CREATE,
  this.moduleName,
});