mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-11-25 08:19:14 +03:00
relational-record-examples: apply custom API for SQLite3.
This commit is contained in:
parent
0bd2b1f7e3
commit
21288a1b60
@ -7,7 +7,7 @@ module Database.Relational.CustomSQLite3 (
|
||||
module Database.HDBC.Session,
|
||||
module Database.HDBC.Sqlite3,
|
||||
module Database.Record,
|
||||
module Database.Relational,
|
||||
module Database.Custom.SQLite3,
|
||||
|
||||
runRelation,
|
||||
makeRelationalRecord,
|
||||
@ -21,13 +21,13 @@ import Database.HDBC.Record hiding (execute, finish)
|
||||
import Database.HDBC.Session
|
||||
import Database.HDBC.Sqlite3
|
||||
import Database.Record hiding (unique)
|
||||
import Database.Relational hiding (unique)
|
||||
import Database.Custom.SQLite3
|
||||
|
||||
runRelation :: (ToSql SqlValue p,
|
||||
IConnection conn,
|
||||
FromSql SqlValue a) =>
|
||||
conn -> Relation p a -> p -> IO [a]
|
||||
runRelation conn q p = runQuery conn (relationalQuery q) p
|
||||
runRelation conn q p = runQuery conn (relationalQuery q []) p
|
||||
|
||||
makeRelationalRecord :: Name -> Q [Dec]
|
||||
makeRelationalRecord = makeRelationalRecord' defaultConfig
|
||||
|
Loading…
Reference in New Issue
Block a user