Module
Data.Postgres.Range
- Package
- purescript-postgresql
- Repository
- cakekindel/purescript-postgresql
#Range Source
newtype Range a
A range of values with optional upper & lower bounds.
mempty -> '(,)'
gte 1 -> '[1,)'
lt 2 -> '(,2]'
gte 1 <> lt 2 -> '[1,2)'
Constructors
Instances
#boundValue Source
boundValue :: forall a. Bound a -> a
Get the value of the bound
#boundIsInclusive Source
boundIsInclusive :: forall a. Bound a -> Boolean
Whether this bound includes the value a
#RangeRecord Source
type RangeRecord = { lower :: Raw, lowerIncl :: Boolean, upper :: Raw, upperIncl :: Boolean }
FFI
#__rangeRawToRecord Source
__rangeRawToRecord :: RangeRaw -> RangeRecord
FFI
#__rangeRawFromRecord Source
__rangeRawFromRecord :: RangeRecord -> RangeRaw
FFI
#__rangeFromRecord Source
__rangeFromRecord :: RangeRecord -> Range Raw
FFI
#__rangeToRecord Source
__rangeToRecord :: Range Raw -> RangeRecord
FFI
- 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