Schemas class

The database schemas models are generated from.

The first is the primary schema: its tables and types keep their plain names. Those of other schemas are prefixed with their schema, so inventory.items becomes InventoryItems and inventory.mood becomes INVENTORY_MOOD.

Constructors

Schemas(List<String> names)
names must not be empty.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
names → List<String>
final
primary → String
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

configName(String qualifiedName) → String
The name to give schema.type in supadart.yaml.
localName(String schema, String name) → String
name in schema, prefixed with the schema unless it is the primary.
localNameOf(String qualifiedName) → String
localName of schema.name.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
qualify(String typeName) → String
typeName qualified with the primary schema unless it names a schema.
toString() → String
A string representation of this object.
inherited
userTypeName(String? format) → String?
schema.type for a user-defined type in public or one of names (inventory.mood[] → inventory.mood), or null for any other format.

Operators

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

Static Methods

split(String qualifiedName) → (String, String)
Splits schema.name into its parts.

Constants

defaults → const Schemas