sqlbuilder ~master (2025-01-26T23:35:43Z)
Dub
Repo
getRelationField
sqlbuilder
traits
Undocumented in source.
template
getRelationField
(T, string item)
template
getRelationField (
T
string
item
) {
static if
(
__traits(hasMember, T, item) && is(typeof(__traits(getMember, T, item)) == Relation)
)
enum
getRelationField
;
static if
(!(
__traits(hasMember, T, item) && is(typeof(__traits(getMember, T, item)) == Relation)
))
static if
(
is(typeof(u)) && isInstanceOf!(refersTo, typeof(u)) && u.name == item
)
enum
result
;
static if
(!(
__traits(hasMember, T, item) && is(typeof(__traits(getMember, T, item)) == Relation)
))
static if
(
is(typeof(result))
)
enum
getRelationField
;
static if
(!(
__traits(hasMember, T, item) && is(typeof(__traits(getMember, T, item)) == Relation)
))
static if
(!(
is(typeof(result))
))
enum
string
getRelationField
;
}
template
getRelationField
(T, U)
Members
Manifest constants
getRelationField
enum
getRelationField
;
Undocumented in source.
getRelationField
enum
getRelationField
;
Undocumented in source.
result
enum
result
;
Undocumented in source.
Variables
getRelationField
enum
string
getRelationField
;
Undocumented in source.
Meta
Source
See Implementation
sqlbuilder
traits
enums
hasPrimaryKey
isRelation
isRelationField
functions
getTables
templates
PrimaryKeyTypes
getAllowNullType
getColumnName
getFetchType
getMappingsFor
getParamType
getQueryTypeList
getRelationField
getRelationFor
getTableName
isDataSet
isField
isQuery
possibleNullColumn
primaryKeyFields