Module
Droplet.Language.Internal.Definition
- Package
- purescript-droplet
- Repository
- easafe/purescript-droplet
Definition of SQL columns types as well conversions from and to columns
Do not import this module directly, it will break your code and make it not type safe. Use the sanitized Droplet.Language
instead
#InvalidField Source
class InvalidField (t :: Type)
Instances
(Fail (Text "Auto columns cannot be inserted or updated")) => InvalidField (Auto t)
InvalidField t
#UnwrapNullable Source
class UnwrapNullable (w :: Type) (t :: Type) | w -> t
Instances
UnwrapNullable (Maybe t) t
UnwrapNullable t t
#ToParameters Source
class ToParameters :: Row Type -> RowList Type -> Constraint
class ToParameters record (list :: RowList Type) where
Members
Instances
ToParameters record Nil
(IsSymbol name, ToValue t, Cons name t e record, ToParameters record rest) => ToParameters record (Cons name t rest)
#UnwrapDefinition Source
class UnwrapDefinition (w :: Type) (t :: Type) | w -> t
Convenience to remove type wrappers
Instances
UnwrapDefinition (Auto t) t
UnwrapDefinition (Default t) t
(UnwrapDefinition t u) => UnwrapDefinition (Joined t) u
UnwrapDefinition t t
#Joined Source
data Joined (a :: Type)
A trick to mark left joined columns as nullable
Instances
(UnwrapDefinition t u) => UnwrapDefinition (Joined t) u
IsNullable (Joined t)
#(...) Source
Operator alias for Droplet.Language.Internal.Definition.path (non-associative / precedence 7)
#AppendPath Source
class AppendPath :: Symbol -> Symbol -> Symbol -> Constraint
class AppendPath (alias :: Symbol) (name :: Symbol) (fullPath :: Symbol) | alias name -> fullPath
Simplify append qualifying column names
Instances
(Append alias Dot path, Append path name fullPath) => AppendPath alias name fullPath
- Modules
- Droplet.
Driver - Droplet.
Driver. Internal. Pool - Droplet.
Driver. Internal. Query - Droplet.
Driver. Unsafe - Droplet.
Language - Droplet.
Language. Internal. Condition - Droplet.
Language. Internal. Definition - Droplet.
Language. Internal. Function - Droplet.
Language. Internal. Keyword - Droplet.
Language. Internal. Query - Droplet.
Language. Internal. Syntax