Copyright | 2017 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
This module provides operations for sequence tables of relational-query with HDBC.
- 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]
- 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]
- 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]
- 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]
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