Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Database.DuckDB.Simple.Types
Description
Synopsis
- data Connection
- data Statement
- newtype Query = Query {}
- data SQLError = SQLError {}
- data FormatError = FormatError {
- formatErrorMessage :: !Text
- formatErrorQuery :: !Query
- formatErrorParams :: ![String]
- data Null = Null
- newtype Only a = Only {
- fromOnly :: a
- data h :. t = h :. t
Documentation
data Connection Source #
Tracks the lifetime of a DuckDB database and connection pair.
Represents a textual SQL query with UTF-8 encoding semantics.
Constructors
Query | |
Represents an error reported by DuckDB or by duckdb-simple itself.
Constructors
SQLError | |
Fields |
Instances
Exception SQLError Source # | |
Defined in Database.DuckDB.Simple.Internal Methods toException :: SQLError -> SomeException # fromException :: SomeException -> Maybe SQLError # displayException :: SQLError -> String # | |
Show SQLError Source # | |
Eq SQLError Source # | |
data FormatError Source #
Raised when parameter formatting fails before a statement is executed.
Constructors
FormatError | |
Fields
|
Instances
Exception FormatError Source # | |
Defined in Database.DuckDB.Simple.Types Methods toException :: FormatError -> SomeException # fromException :: SomeException -> Maybe FormatError # displayException :: FormatError -> String # | |
Show FormatError Source # | |
Defined in Database.DuckDB.Simple.Types Methods showsPrec :: Int -> FormatError -> ShowS # show :: FormatError -> String # showList :: [FormatError] -> ShowS # | |
Eq FormatError Source # | |
Defined in Database.DuckDB.Simple.Types |
Placeholder representing SQL NULL
.
Constructors
Null |
Wrapper used for single-column rows.
Instances
Convenience product type for combining FromRow
/ToRow
instances.
Constructors
h :. t infixr 3 |
Instances
(Read h, Read t) => Read (h :. t) Source # | |
(Show h, Show t) => Show (h :. t) Source # | |
(FromRow a, FromRow b) => FromRow (a :. b) Source # | |
(ToRow a, ToRow b) => ToRow (a :. b) Source # | |
Defined in Database.DuckDB.Simple.ToRow Methods toRow :: (a :. b) -> [FieldBinding] Source # | |
(Eq h, Eq t) => Eq (h :. t) Source # | |
(Ord h, Ord t) => Ord (h :. t) Source # | |
Defined in Database.DuckDB.Simple.Types |