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

#Empty Source

type Empty :: Symboltype Empty = ""

#InvalidField Source

class InvalidField (t :: Type) 

Instances

#IsNullable Source

class IsNullable (t :: Type) 

Instances

#UnwrapNullable Source

class UnwrapNullable (w :: Type) (t :: Type) | w -> t

Instances

#ToParameters Source

class ToParameters :: Row Type -> RowList Type -> Constraintclass ToParameters record (list :: RowList Type)  where

Members

Instances

#ToValue Source

class ToValue v  where

Converts a PureScript value into Postgres

Members

Instances

#UnwrapDefinition Source

class UnwrapDefinition (w :: Type) (t :: Type) | w -> t

Convenience to remove type wrappers

Instances

#Auto Source

data Auto (a :: Type)

Identity fields

Instances

#Default Source

data Default (a :: Type)

Default constraints

Constructors

Instances

#Star Source

data Star

Constructors

#Table Source

data Table :: Symbol -> Row Type -> Typedata Table (name :: Symbol) (fields :: Row Type)

Constructors

#Joined Source

data Joined (a :: Type)

A trick to mark left joined columns as nullable

Instances

#path Source

path :: forall alias field path pathField. Append alias Dot path => Append path field pathField => Proxy alias -> Proxy field -> Path alias field

#(...) Source

Operator alias for Droplet.Language.Internal.Definition.path (non-associative / precedence 7)

#E Source

data E

Marks the query end

Constructors

#Path Source

data Path :: Symbol -> Symbol -> Typedata Path (alias :: Symbol) (field :: Symbol)

Qualified columns (e.g, table.column)

#AppendPath Source

class AppendPath :: Symbol -> Symbol -> Symbol -> Constraintclass AppendPath (alias :: Symbol) (name :: Symbol) (fullPath :: Symbol) | alias name -> fullPath

Simplify append qualifying column names

Instances