Module

Node.SQLite.Encoding

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

#EncodedRecord Source

#Encode Source

class Encode (v :: Type)  where

Members

Instances

#EncodeFields Source

class EncodeFields :: RowList Type -> Row Type -> Row Type -> Constraintclass EncodeFields (rl :: RowList Type) (r :: Row Type) (encoded :: Row Type) | rl -> r encoded where

Internal. RowList traversal behind the Encode (Record r) instance.

Members

Instances

#EncodeValue Source

class EncodeValue (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

#EncodeNonNullableValue Source

class EncodeNonNullableValue (v :: Type)  where

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

Members

Instances