Fix quasi-quote in tables function
This commit is contained in:
+3
-3
@@ -68,9 +68,9 @@ instance JSON.ToJSON Column where
|
|||||||
tables :: String -> Connection -> IO [Table]
|
tables :: String -> Connection -> IO [Table]
|
||||||
tables s conn = query conn q $ Only s
|
tables s conn = query conn q $ Only s
|
||||||
where q = [sql|
|
where q = [sql|
|
||||||
select table_schema, table_name,\
|
select table_schema, table_name,
|
||||||
is_insertable_into \
|
is_insertable_into
|
||||||
from information_schema.tables\
|
from information_schema.tables
|
||||||
where table_schema = ? |]
|
where table_schema = ? |]
|
||||||
|
|
||||||
columns :: T.Text -> Connection -> IO [Column]
|
columns :: T.Text -> Connection -> IO [Column]
|
||||||
|
|||||||
Reference in New Issue
Block a user