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.

  1. data PgDateRange

    beam-postgres Database.Beam.Postgres

    No documentation available.

  2. class PgDebugStmt statement

    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

  3. data PgDeleteSyntax

    beam-postgres Database.Beam.Postgres

    IsSql92DeleteSyntax for Postgres

  4. PgEmptyRange :: PgRange n a

    beam-postgres Database.Beam.Postgres

    No documentation available.

  5. data PgExtensionEntity extension

    beam-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 migratableDbSettings
    
    Note 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.

  6. data PgInsertSyntax

    beam-postgres Database.Beam.Postgres

    IsSql92InsertSyntax for Postgres

  7. data PgInt4Range

    beam-postgres Database.Beam.Postgres

    No documentation available.

  8. data PgInt8Range

    beam-postgres Database.Beam.Postgres

    No documentation available.

  9. 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.

  10. class PgIsRange (n :: k)

    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.

Page 1201 of many | Previous | Next