Module

Node.SQLite.Encoding.EncodedValue

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

#EncodedValue Source

newtype EncodedValue

A JS value accepted by node:sqlite as a bound parameter. Opaque: the constructor is not exported, so values can only be built with the smart constructors below, one per SQLite storage class.

#null Source

null :: EncodedValue

SQL NULL, bound as JS null.

#encodeInt Source

encodeInt :: Int -> EncodedValue

SQL INTEGER, bound as a JS number.

#encodeReal Source

encodeReal :: Number -> EncodedValue

SQL REAL, bound as a JS number.

#encodeText Source

encodeText :: String -> EncodedValue

SQL TEXT, bound as a JS string.