Module

Node.SQLite.Decoding

Package
purescript-node-sqlite
Repository
m-rinaldi/purescript-node-sqlite

#Decode Source

class Decode (t :: Type)  where

Members

Instances

#DecodeFields Source

class DecodeFields :: RowList Type -> Row Type -> Constraintclass DecodeFields (rl :: RowList Type) (row :: Row Type) | rl -> row where

Internal. RowList traversal behind the Decode instances.

Members

Instances

#DecodeValue Source

class DecodeValue (v :: Type)  where

One SQL value, NULL allowed. Not an extension point: the fallback instance below overlaps with any instance written elsewhere, so nullability is expressed by wrapping in Maybe.

Members

Instances

#DecodeNonNullableValue Source

class DecodeNonNullableValue (v :: Type)  where

Extension point. Decodes a single SQL value that is never NULL into a PureScript type. Add an instance to make a type usable as a column, directly or wrapped in Maybe.

Members

Instances