mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-26 21:42:15 +03:00
Update examples along with deprecations.
This commit is contained in:
parent
d5c6b979d6
commit
2df540041b
@ -7,7 +7,7 @@ import Database.Relational.Query
|
||||
import Database.Relational.Query.TH
|
||||
import Database.HDBC.Query.TH ()
|
||||
|
||||
$(defineTableDefault defaultConfig
|
||||
$(defineTable defaultConfig
|
||||
"PUBLIC" "birthday"
|
||||
[ ("name" , [t| String |])
|
||||
, ("day" , [t| Day |])
|
||||
|
@ -6,7 +6,7 @@ import Data.Int
|
||||
import Database.Relational.Query
|
||||
import Database.Relational.Query.TH
|
||||
|
||||
$(defineTableDefault defaultConfig
|
||||
$(defineTable defaultConfig
|
||||
"PUBLIC" "person"
|
||||
[ ("name" , [t| String |])
|
||||
, ("age" , [t| Int32 |])
|
||||
|
@ -6,7 +6,7 @@ import Database.Relational.Query
|
||||
import Database.Relational.Query.TH
|
||||
|
||||
|
||||
$(defineTableDefault defaultConfig
|
||||
$(defineTable defaultConfig
|
||||
"PUBLIC" "my_table"
|
||||
[ ("person", [t| String |])
|
||||
, ("family", [t| String |])
|
||||
|
@ -7,7 +7,7 @@ import Database.Relational.Query
|
||||
import Database.Relational.Query.TH
|
||||
import Database.HDBC.Query.TH ()
|
||||
|
||||
$(defineTableDefault defaultConfig
|
||||
$(defineTable defaultConfig
|
||||
"PUBLIC" "birthday"
|
||||
[ ("name" , [t| String |])
|
||||
, ("day" , [t| Day |])
|
||||
|
@ -6,7 +6,7 @@ import Data.Int
|
||||
import Database.Relational.Query
|
||||
import Database.Relational.Query.TH
|
||||
|
||||
$(defineTableDefault defaultConfig
|
||||
$(defineTable defaultConfig
|
||||
"PUBLIC" "person"
|
||||
[ ("name" , [t| String |])
|
||||
, ("age" , [t| Int32 |])
|
||||
|
@ -6,7 +6,7 @@ import Database.Relational.Query
|
||||
import Database.Relational.Query.TH
|
||||
|
||||
|
||||
$(defineTableDefault defaultConfig
|
||||
$(defineTable defaultConfig
|
||||
"PUBLIC" "my_table"
|
||||
[ ("person", [t| String |])
|
||||
, ("family", [t| String |])
|
||||
|
Loading…
Reference in New Issue
Block a user