Type Definitions

CheckResult

Type:
  • Object
Properties
NameTypeDescription
errorsArray.<String>String representation of errors found
passedArray.<String>String representation of passed checks

ColumnStructure

Type:
  • Object
Properties
NameTypeDescription
FieldStringColumn name
TypeStringColumn type
Null"YES" | "NO"Whether the column allows null-values
Key"" | "PRI" | "MUL" | "UNI"PRI = Primary, MUL = Indexed, UNI = Unique
DefaultString | nullDefault values for this row
Extra"" | "auto_increment"Any extra

ConstraintOptions

Type:
  • Object
Properties
NameTypeAttributesDescription
primaryBoolean<optional>
Whether this column should be primary
indexBoolean<optional>
Whether this column should be indexable (Faster query, slower insertion)
nullBoolean<optional>
Whether this column is null per default
uniqueBoolean<optional>
Whether this column data should be unique
defaultString<optional>
Set's the default data for this column
auto_incrementBoolean<optional>
Whether this column should be numerical auto_increment
unsignedBoolean<optional>
Only on numerical: Whether this numerical field should be unsigned

InstanceOptions

Type:
  • Object
Properties
NameTypeAttributesDescription
charsetString<optional>
Charset to use
defaultDatabaseString<optional>
The default database
multipleStatementsBoolean<optional>
Whether multiple statements should be allowed in a single query
insecureAuthBoolean<optional>
Whether insecure authentication methods should be allowed
customIdentifierString<optional>
Sets a custom identifier for this instance
isDefaultBoolean<optional>
Whether this instance is returned by default via 'getInstance'