| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.DuckDB.Simple.Types
Description
The datatypes in this module are intentionally kept lightweight. The main
Simple module exposes the types without their constructors so
that callers interact with them through the high-level API. The actual
definitions live in Database.DuckDB.Simple.Internal.
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 # backtraceDesired :: SQLError -> Bool # | |
| 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 # backtraceDesired :: FormatError -> Bool # | |
| 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 |
Instances
| FromField Null Source # | |
Defined in Database.DuckDB.Simple.FromField Methods | |
| DuckDBColumnType Null Source # | |
Defined in Database.DuckDB.Simple.ToField | |
| ToDuckValue Null Source # | |
Defined in Database.DuckDB.Simple.ToField Methods toDuckValue :: Null -> IO DuckDBValue Source # | |
| ToField Null Source # | |
Defined in Database.DuckDB.Simple.ToField Methods toField :: Null -> FieldBinding Source # | |
| Read Null Source # | |
| Show Null Source # | |
| Eq Null Source # | |
| Ord Null Source # | |
Wrapper used for single-column rows.
Instances
Convenience product type for combining FromRow and ToRow instances.
Constructors
| h :. t infixr 3 |
Instances
| (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 # | |
| (Read h, Read t) => Read (h :. t) Source # | |
| (Show h, Show t) => Show (h :. t) Source # | |
| (Eq h, Eq t) => Eq (h :. t) Source # | |
| (Ord h, Ord t) => Ord (h :. t) Source # | |
Defined in Database.DuckDB.Simple.Types | |