relational-query-HDBC-0.6.8.0: HDBC instance of relational-query and typed query interface for HDBC

Copyright2017 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Database.HDBC.Record.Sequence

Description

This module provides operations for sequence tables of relational-query with HDBC.

Synopsis

Documentation

pool :: (FromSql SqlValue s, ToSql SqlValue i, PersistableWidth i, ShowConstantTermsSQL i, Bounded i, Integral i, Show i, IConnection conn, Binding r s i) => IO conn -> i -> Relation () r -> IO [Number r i] Source #

Get a sized sequence number pool corresponding proper table r

autoPool :: (FromSql SqlValue s, ToSql SqlValue i, ShowConstantTermsSQL i, Bounded i, Integral i, Show i, IConnection conn, Binding r s i) => IO conn -> i -> Relation () r -> IO [Number r i] Source #

Get a lazy pool corresponding proper table r

unsafePool :: (FromSql SqlValue s, PersistableWidth s, ToSql SqlValue i, ShowConstantTermsSQL i, Bounded i, Integral i, Show i, IConnection conn) => IO conn -> i -> Sequence s i -> IO [i] Source #

Unsafely get a raw sequence number pool of specified size

unsafeAutoPool :: (FromSql SqlValue s, PersistableWidth s, ToSql SqlValue i, ShowConstantTermsSQL i, Bounded i, Integral i, Show i, IConnection conn) => IO conn -> i -> Sequence s i -> IO [i] Source #

Unsafely get a raw lazy pool of sequence number