| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
PostgREST.Types
- data DbStructure = DbStructure {
- dbTables :: [Table]
- dbColumns :: [Column]
- dbRelations :: [Relation]
- dbPrimaryKeys :: [PrimaryKey]
- type Schema = Text
- type TableName = Text
- type SqlQuery = Text
- type SqlFragment = Text
- type RequestBody = ByteString
- data Table = Table {}
- data ForeignKey = ForeignKey {}
- data Column
- = Column {
- colTable :: Table
- colName :: Text
- colPosition :: Int32
- colNullable :: Bool
- colType :: Text
- colUpdatable :: Bool
- colMaxLen :: Maybe Int32
- colPrecision :: Maybe Int32
- colDefault :: Maybe Text
- colEnum :: [Text]
- colFK :: Maybe ForeignKey
- | Star { }
- = Column {
- type Synonym = (Column, Column)
- data PrimaryKey = PrimaryKey {}
- data OrderDirection
- data OrderNulls
- data OrderTerm = OrderTerm {}
- data QualifiedIdentifier = QualifiedIdentifier {}
- data RelationType
- data Relation = Relation {}
- newtype UniformObjects = UniformObjects (Vector Object)
- unUniformObjects :: UniformObjects -> Vector Object
- data Payload
- type Operator = Text
- data FValue
- type FieldName = Text
- type JsonPath = [Text]
- type Field = (FieldName, Maybe JsonPath)
- type Alias = Text
- type Cast = Text
- type NodeName = Text
- type SelectItem = (Field, Maybe Cast, Maybe Alias)
- type Path = [Text]
- data ReadQuery = Select {}
- data MutateQuery
- data Filter = Filter {}
- type ReadNode = (ReadQuery, (NodeName, Maybe Relation, Maybe Alias))
- type ReadRequest = Tree ReadNode
- type MutateRequest = MutateQuery
- data DbRequest
Documentation
data DbStructure Source #
Constructors
| DbStructure | |
Fields
| |
Instances
type SqlFragment = Text Source #
type RequestBody = ByteString Source #
Constructors
| Table | |
Fields
| |
Constructors
| Column | |
Fields
| |
| Star | |
data OrderDirection Source #
Instances
Constructors
| OrderTerm | |
Fields | |
data RelationType Source #
Instances
Constructors
| Relation | |
newtype UniformObjects Source #
An array of JSON objects that has been verified to have the same keys in every object
Constructors
| UniformObjects (Vector Object) |
Instances
When Hasql supports the COPY command then we can have a special payload just for CSV, but until then CSV is converted to a JSON array.
Constructors
| PayloadJSON UniformObjects | |
| PayloadParseError ByteString |
Constructors
| VText Text | |
| VForeignKey QualifiedIdentifier ForeignKey |
Constructors
| Select | |
type ReadRequest = Tree ReadNode Source #
type MutateRequest = MutateQuery Source #
Constructors
| DbRead ReadRequest | |
| DbMutate MutateRequest |