Portability | portable |
---|---|
Stability | experimental |
Maintainer | Bryan O'Sullivan <[email protected]> |
Database.MySQL.Base.Types
Description
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, flagMultipleKey, flagUniqueKey, flagPrimaryKey :: FieldFlag
- flagUnsigned, flagAutoIncrement, flagBinary, flagZeroFill :: FieldFlag
- flagNumeric, flagNoDefaultValue :: FieldFlag
- toConnectFlag :: Option -> CULong
Types
High-level types
Column types supported by MySQL.
Constructors
A description of a field (column) of a table.
Constructors
Field | |
Fields
|
type FieldFlag = FieldFlagsSource
data FieldFlags Source
Instances
Low-level types
data MYSQL_ROWS Source
type MYSQL_ROW_OFFSET = Ptr MYSQL_ROWSSource
Field flags
hasAllFlags :: FieldFlags -> FieldFlags -> BoolSource
Connect flags
toConnectFlag :: Option -> CULongSource