dorm.annotations

Undocumented in source.

Members

Aliases

AllowedDefaultValueTypes
alias AllowedDefaultValueTypes = AliasSeq!(string, ubyte[], byte, short, int, long, ubyte, ushort, uint, ulong, float, double, bool, Date, DateTime, TimeOfDay, SysTime)
Undocumented in source.
Id
alias Id = AliasSeq!(primaryKey, autoIncrement)
Undocumented in source.
PossibleDefaultValueTs
alias PossibleDefaultValueTs = staticMap!(DefaultValue, AllowedDefaultValueTypes)
Undocumented in source.

Enums

ReferentialAction
enum ReferentialAction
Undocumented in source.
autoCreateTime
enum autoCreateTime
Undocumented in source.
autoIncrement
enum autoIncrement
Undocumented in source.
autoUpdateTime
enum autoUpdateTime
Undocumented in source.
defaultFromInit
enum defaultFromInit
Undocumented in source.
embedded
enum embedded
Undocumented in source.
ignored
enum ignored
Undocumented in source.
isAllowedDefaultValueType
eponymoustemplate isAllowedDefaultValueType(T)
Undocumented in source.
isDormFieldAttribute
eponymoustemplate isDormFieldAttribute(alias attr)

Checks if the given attribute affects DORM Fields

isDormModelAttribute
eponymoustemplate isDormModelAttribute(alias attr)

Checks if the given attribute affects DORM Models (classes)

notNull
enum notNull
Undocumented in source.
primaryKey
enum primaryKey
Undocumented in source.
timestamp
enum timestamp
Undocumented in source.
unique
enum unique
Undocumented in source.

Functions

choices
Choices choices(string[] choices)
Undocumented in source. Be warned that the author may not have intended to support it.
defaultValue
auto defaultValue(T value)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

cascade
enum cascade;
Undocumented in source.
restrict
enum restrict;
Undocumented in source.
setDefault
enum setDefault;
Undocumented in source.
setNull
enum setNull;
Undocumented in source.

Structs

Choices
struct Choices
Undocumented in source.
DefaultValue
struct DefaultValue(T)
Undocumented in source.
ForeignKeyImpl
struct ForeignKeyImpl

Automatically generated foreign key attribute for one-to-many and many-to-many relations. Does not need to be assigned onto any variables.

columnName
struct columnName
Undocumented in source.
constructValue
struct constructValue(alias fn)
Undocumented in source.
index
struct index
Undocumented in source.
maxLength
struct maxLength
Undocumented in source.
onDelete
struct onDelete
Undocumented in source.
onUpdate
struct onUpdate
Undocumented in source.
validator
struct validator(alias fn)
Undocumented in source.

Templates

isDormAttribute
template isDormAttribute(alias attr)

Checks if the given attribute is part of this dorm.annotations module.

Meta