Module

Data.Postgres.Query

Package
purescript-postgresql
Repository
cakekindel/purescript-postgresql

#Query Source

newtype Query

SQL Query

  • text - the query string
  • values - query parameter values
  • name (optional) - providing this will create this query as a prepared statement

Constructors

Instances

#emptyQuery Source

emptyQuery :: Query

An empty query

#AsQueryParams Source

class AsQueryParams a  where

Any value that can be converted to an array of query parameters

Members

Instances

#AsQuery Source

class AsQuery a  where

Values that can be rendered as a SQL query

Members

Instances

#QueryRaw Source

type QueryRaw = { name :: Nullable String, rowMode :: String, text :: String, values :: Array Raw }

FFI

#__queryToRaw Source