selective exports hides implementation details.
This commit is contained in:
+9
-4
@@ -2,7 +2,12 @@
|
|||||||
|
|
||||||
-- {{{ Imports
|
-- {{{ Imports
|
||||||
|
|
||||||
module PgQuery where
|
module PgQuery (
|
||||||
|
getRows,
|
||||||
|
insert,
|
||||||
|
upsert,
|
||||||
|
RangedResult(..),
|
||||||
|
) where
|
||||||
|
|
||||||
import Data.Text (Text, pack)
|
import Data.Text (Text, pack)
|
||||||
import Data.Functor ( (<$>) )
|
import Data.Functor ( (<$>) )
|
||||||
@@ -100,9 +105,9 @@ selectStarClause :: Schema -> String -> QuotedSql
|
|||||||
selectStarClause schema table =
|
selectStarClause schema table =
|
||||||
(" select * from %I.%I ", map toSql [schema, table])
|
(" select * from %I.%I ", map toSql [schema, table])
|
||||||
|
|
||||||
selectCountClause :: Schema -> String -> QuotedSql
|
-- selectCountClause :: Schema -> String -> QuotedSql
|
||||||
selectCountClause schema table =
|
-- selectCountClause schema table =
|
||||||
(" select count(1) from %I.%I ", map toSql [schema, table])
|
-- (" select count(1) from %I.%I ", map toSql [schema, table])
|
||||||
|
|
||||||
jsonArrayRows :: QuotedSql -> QuotedSql
|
jsonArrayRows :: QuotedSql -> QuotedSql
|
||||||
jsonArrayRows q =
|
jsonArrayRows q =
|
||||||
|
|||||||
Reference in New Issue
Block a user