TableBuilder<Key > class
final
Methods
additionalSql (String sql (Table table ) )
→ TableBuilder <Key >
This additional sql will get executed immediately after table creation,
This is useful for triggers, keep in mind all triggers written like this should have "IF NOT EXISTS" as the will get executed regardless
Initialisation of this property is differed so it will always have all columns within it.
boolean (String name , {bool nullable = false , bool unique = false })
→ TableBuilder <Key >
build ({bool withoutRowId = false })
→ Table <Key >
bytes (String name , {bool nullable = false , bool unique = false })
→ TableBuilder <Key >
dateTime (String name , {bool nullable = false , bool unique = false })
→ TableBuilder <Key >
integer (String name , {bool nullable = false , bool unique = false })
→ TableBuilder <Key >
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
primaryKey (String name )
→ TableBuilder <int >
primaryKeyCuid (String name )
→ TableBuilder <String >
primaryKeyUuid (String name )
→ TableBuilder <String >
real (String name , {bool nullable = false , bool unique = false })
→ TableBuilder <Key >
reference (String name , Table table , {bool nullable = false , CascadeOperation ? onUpdate , CascadeOperation ? onDelete , DataAffinity type = DataAffinity.integer })
→ TableBuilder <Key >
text (String name , {bool nullable = false , bool unique = false })
→ TableBuilder <Key >
toString ()
→ String
A string representation of this object.
inherited
trigger (String sql (Table table ), {required String name , required TriggerVerb verb , TriggerTemporality temporality = TriggerTemporality.before })
→ TableBuilder <Key >