DriftDatabaseOptions constructor

const DriftDatabaseOptions({
  1. bool storeDateTimeAsText = false,
})

Creates database-specific database options.

When storeDateTimeAsText is enabled (it defaults to false for backwards-compatibility), drift's datetime columns will be stored as text. By default, they will be stored as unix timestamps (integers).

For details on how datetimes can be stored, see the documentation.

Implementation

const DriftDatabaseOptions({
  bool storeDateTimeAsText = false,
})  : _storeDateTimeAsText = storeDateTimeAsText,
      // ignore: deprecated_member_use_from_same_package
      types =
          storeDateTimeAsText ? const SqlTypes(true) : const SqlTypes(false);