Copyright | (c) 2011 MailRank, Inc. |
---|---|
License | BSD3 |
Maintainer | Paul Rouse <pyr@doynton.org> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
Types for working with the direct bindings to the C mysqlclient
API.
- data Type
- type Seconds = Word
- data Protocol
- data Option
- = ConnectTimeout Seconds
- | Compress
- | NamedPipe
- | InitCommand ByteString
- | ReadDefaultFile FilePath
- | ReadDefaultGroup ByteString
- | CharsetDir FilePath
- | CharsetName String
- | LocalInFile Bool
- | Protocol Protocol
- | SharedMemoryBaseName ByteString
- | ReadTimeout Seconds
- | WriteTimeout Seconds
- | UseRemoteConnection
- | UseEmbeddedConnection
- | GuessConnection
- | ClientIP ByteString
- | SecureAuth Bool
- | ReportDataTruncation Bool
- | Reconnect Bool
- | SSLVerifyServerCert Bool
- | FoundRows
- | IgnoreSIGPIPE
- | IgnoreSpace
- | Interactive
- | LocalFiles
- | MultiResults
- | MultiStatements
- | NoSchema
- data Field = Field {
- fieldName :: ByteString
- fieldOrigName :: ByteString
- fieldTable :: ByteString
- fieldOrigTable :: ByteString
- fieldDB :: ByteString
- fieldCatalog :: ByteString
- fieldDefault :: Maybe ByteString
- fieldLength :: Word
- fieldMaxLength :: Word
- fieldFlags :: FieldFlags
- fieldDecimals :: Word
- fieldCharSet :: Word
- fieldType :: Type
- type FieldFlag = FieldFlags
- data FieldFlags
- data MYSQL
- data MYSQL_RES
- type MYSQL_ROW = Ptr (Ptr CChar)
- data MYSQL_ROWS
- type MYSQL_ROW_OFFSET = Ptr MYSQL_ROWS
- type MyBool = CChar
- hasAllFlags :: FieldFlags -> FieldFlags -> Bool
- flagNotNull :: FieldFlag
- flagPrimaryKey :: FieldFlag
- flagUniqueKey :: FieldFlag
- flagMultipleKey :: FieldFlag
- flagUnsigned :: FieldFlag
- flagZeroFill :: FieldFlag
- flagBinary :: FieldFlag
- flagAutoIncrement :: FieldFlag
- flagNumeric :: FieldFlag
- flagNoDefaultValue :: FieldFlag
- toConnectFlag :: Option -> CULong
Types
High-level types
Column types supported by MySQL.
A description of a field (column) of a table.
Field | |
|
type FieldFlag = FieldFlags Source #
Low-level types
data MYSQL_ROWS Source #
type MYSQL_ROW_OFFSET = Ptr MYSQL_ROWS Source #
Field flags
hasAllFlags :: FieldFlags -> FieldFlags -> Bool Source #
Connect flags
toConnectFlag :: Option -> CULong Source #