SdbDatabaseSchema class

Database schema

Rules applied.

  • Stores not in schema are deleted
  • Store schema changes (key path, auto increment) are not supported, an error is thrown
  • Index schema changes (key path) are not supported, an error is thrown
  • Indexes not in schema are deleted
Available extensions

Constructors

SdbDatabaseSchema({required List<SdbStoreSchema> stores})
Database schema

Properties

def SdbDatabaseSchemaDef

Available on SdbDatabaseSchema, provided by the SdbDatabaseSchemaExtension extension

Database schema definition
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storeNames Iterable<String>

Available on SdbDatabaseSchema, provided by the SdbDatabaseSchemaExtension extension

store names
no setter
storeRefs List<SdbStoreRef<SdbKey, SdbValue>>

Available on SdbDatabaseSchema, provided by the SdbDatabaseSchemaExtension extension

store refs
no setter
stores List<SdbStoreSchema>
Stores schemas
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited