Module
Data.Postgres.Raw
- Package
- purescript-postgresql
- Repository
- cakekindel/purescript-postgresql
#Raw Source
data Raw
A raw JS value converted from SQL
In practice, this is an alias for Foreign
with
type system guarantees that purescript types are
correctly represented in JS to be represented in SQL.
Instances
#rawToDebugString Source
rawToDebugString :: Raw -> String
Stringifies a Raw
value if a JS primitive,
else returns a debug representation.
{foo: 'bar'} -> "[Object]"
[1, 2, 3] -> "[Array]"
'foo' -> "foo"
123 -> "123"
#rawDebugEq Source
rawDebugEq :: Raw -> Raw -> Boolean
Performs JS referential equality ===
for primitives
or arrays of primitives, else returns false
.
#unsafeFromForeign Source
unsafeFromForeign :: Foreign -> Raw
Coerce a Foreign
value to Raw
.
This is only safe if the Foreign
value
is guaranteed to be serializable to a SQL
value via pg-types
.
- Modules
- Control.
Monad. Postgres - Control.
Monad. Postgres. Base - Control.
Monad. Postgres. Cursor - Control.
Monad. Postgres. Session - Data.
Postgres - Data.
Postgres. Custom - Data.
Postgres. Custom. Enum - Data.
Postgres. Interval - Data.
Postgres. Query - Data.
Postgres. Query. Builder - Data.
Postgres. Range - Data.
Postgres. Raw - Data.
Postgres. Result - Data.
Postgres. Unresult - Effect.
Aff. Postgres. Client - Effect.
Aff. Postgres. Pool - Effect.
Postgres. Client - Effect.
Postgres. Error - Effect.
Postgres. Error. Common - Effect.
Postgres. Error. Except - Effect.
Postgres. Error. RE - Effect.
Postgres. Pool - Node.
FS. PinnedVersion - Pipes.
Postgres