Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
beam-postgres Database.Beam.Postgres No documentation available.
-
beam-postgres Database.Beam.Postgres Type class for Sql* types that can be turned into Postgres syntax, for use in the following debugging functions These include
-
beam-postgres Database.Beam.Postgres IsSql92DeleteSyntax for Postgres
-
beam-postgres Database.Beam.Postgres No documentation available.
data
PgExtensionEntity extensionbeam-postgres Database.Beam.Postgres Represents an extension in a database. For example, to include the Database.Beam.Postgres.PgCrypto extension in a database,
import Database.Beam.Postgres.PgCrypto data MyDatabase entity = MyDatabase { _table1 :: entity (TableEntity Table1) , _cryptoExtension :: entity (PgExtensionEntity PgCrypto) } migratableDbSettings :: CheckedDatabaseSettings Postgres MyDatabase migratableDbSettings = defaultMigratableDbSettings dbSettings :: DatabaseSettings Postgres MyDatabase dbSettings = unCheckDatabase migratableDbSettingsNote that our database now only works in the Postgres backend. Extensions are implemented as records of functions and values that expose extension functionality. For example, the pgcrypto extension (implemented by PgCrypto) provides cryptographic functions. Thus, PgCrypto is a record of functions over QGenExpr which wrap the underlying postgres functionality. You get access to these functions by retrieving them from the entity in the database. For example, to use the pgcrypto extension in the database above:let PgCrypto { pgCryptoDigestText = digestText , pgCryptoCrypt = crypt } = getPgExtension (_cryptoExtension dbSettings) in fmap_ (tbl -> (tbl, crypt (_field1 tbl) (_salt tbl))) (all_ (table1 dbSettings))To implement your own extension, create a record type, and implement the IsPgExtension type class.-
beam-postgres Database.Beam.Postgres IsSql92InsertSyntax for Postgres
-
beam-postgres Database.Beam.Postgres No documentation available.
-
beam-postgres Database.Beam.Postgres No documentation available.
class
PgIsArrayContext (ctxt :: k)beam-postgres Database.Beam.Postgres If you are extending beam-postgres and provide another expression context that can be represented in an array, provide an empty instance of this class.
-
beam-postgres Database.Beam.Postgres A class representing Postgres Range types and how to refer to them when speaking to the database. For custom Range types, create an uninhabited type, and make it an instance of this class.