Safe Haskell | None |
---|---|
Language | Haskell98 |
YesodDsl.AST
Documentation
Constructors
Module | |
Fields
|
moduleName :: Module -> String Source #
emptyModule :: Module Source #
Constructors
Import | |
Fields |
type EntityName = String Source #
type FunctionName = String Source #
Constructors
Unique | |
Fields
|
type VariableName = String Source #
Constructors
InnerJoin | |
CrossJoin | |
LeftOuterJoin | |
RightOuterJoin | |
FullOuterJoin |
isOuterJoin :: JoinType -> Bool Source #
type MaybeLevel = Int Source #
entityRefName :: EntityRef -> EntityName Source #
Constructors
type UseParamFlag = Bool Source #
type IfFilterParams = (ParamName, [Join], Expr, [OrderBy], UseParamFlag) Source #
data SelectQuery Source #
Constructors
SelectQuery | |
Fields
|
Instances
sqAliases :: SelectQuery -> Map VariableName (Entity, MaybeFlag) Source #
data SelectField Source #
Constructors
SelectAllFields VariableRef | |
SelectField VariableRef FieldName (Maybe VariableName) | |
SelectIdField VariableRef (Maybe VariableName) | |
SelectExpr Expr VariableName |
Instances
Constructors
Join | |
Fields
|
type FieldRefMapping = (ParamName, FieldRef, Maybe FunctionName) Source #
data CheckmarkValue Source #
Instances
Constructors
Handler | |
Fields
|
Constructors
Entity | |
Fields
|
routePathParams :: Route -> [PathPiece] Source #
isPathParam :: PathPiece -> Bool Source #
Constructors
PathText String | |
PathId Location EntityName |
Constructors
Class | |
Fields
|
type DefaultValue = String Source #
type IsListFlag = Bool Source #
data FieldContent Source #
Constructors
NormalField FieldType | |
EntityField EntityName | |
EnumField EnumName |
Instances
Constructors
Field | |
Fields
|
fieldInternal :: Field -> Bool Source #
fieldReadOnly :: Field -> Bool Source #
fieldJsonName :: Field -> FieldName Source #
data FieldOption Source #
Constructors
FieldCheck FunctionName | |
FieldDefault FieldValue | |
FieldColumnName FieldName | |
FieldJsonName FieldName | |
FieldInternal | |
FieldReadOnly |
Instances
data FieldValue Source #
Constructors
StringValue String | |
IntValue Int | |
FloatValue Double | |
BoolValue Bool | |
NothingValue | |
CheckmarkValue CheckmarkValue | |
EnumFieldValue EnumName EnumValue | |
EmptyList |
Instances
fieldValueToSql :: FieldValue -> String Source #
fieldValueToHs :: FieldValue -> String Source #
fieldDefault :: Field -> Maybe FieldValue Source #
fieldChecks :: Field -> [FunctionName] Source #
lowerFirst :: String -> String Source #
upperFirst :: String -> String Source #