miniorm.schema

Members

Functions

buildSchema
auto buildSchema(string prefix)

Create SQL for creating tables if not exists

fieldNames
string[] fieldNames(string prefix)
Undocumented in source. Be warned that the author may not have intended to support it.
fieldToCol
FieldColumn[] fieldToCol(string prefix)
Undocumented in source. Be warned that the author may not have intended to support it.
tableConstraints
string[] tableConstraints()
Undocumented in source. Be warned that the author may not have intended to support it.
tableForeinKeys
string[] tableForeinKeys()
Undocumented in source. Be warned that the author may not have intended to support it.
tableName
string tableName()
Undocumented in source. Be warned that the author may not have intended to support it.
tablePrimaryKey
string tablePrimaryKey()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

SEPARATOR
enum SEPARATOR;
Undocumented in source.

Structs

ColumnName
struct ColumnName

UDA to control the column name that a field end up as.

ColumnParam
struct ColumnParam

UDA controlling extra attributes for a field.

FieldColumn
struct FieldColumn
Undocumented in source.
KeyParam
struct KeyParam
Undocumented in source.
KeyRef
struct KeyRef
Undocumented in source.
TableConstraint
struct TableConstraint

UDA controlling constraints of a table.

TableForeignKey
struct TableForeignKey

UDA for foreign keys on a table.

TableName
struct TableName

UDA controlling the name of the table.

TablePrimaryKey
struct TablePrimaryKey

UDA setting a field other than id to being the primary key.

Meta

License

MIT

Authors

Oleg Butko (deviator) Joakim Brännström (joakim.brannstrom@gmx.com)