| Copyright | (c) Winterland 2016 | 
|---|---|
| License | BSD | 
| Maintainer | drkoster@qq.com | 
| Stability | experimental | 
| Portability | PORTABLE | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
Database.MySQL.Protocol.Command
Description
Common MySQL commands supports.
Synopsis
- type StmtID = Word32
- data Command- = COM_QUIT
- | COM_INIT_DB !ByteString
- | COM_QUERY !ByteString
- | COM_PING
- | COM_BINLOG_DUMP !Word32 !Word16 !Word32 !ByteString
- | COM_REGISTER_SLAVE !Word32 !ByteString !ByteString !ByteString !Word16 !Word32 !Word32
- | COM_STMT_PREPARE !ByteString
- | COM_STMT_EXECUTE !StmtID ![MySQLValue] !BitMap
- | COM_STMT_CLOSE !StmtID
- | COM_STMT_RESET !StmtID
- | COM_UNSUPPORTED
 
- putCommand :: Command -> Put
- data StmtPrepareOK = StmtPrepareOK {- stmtId :: !StmtID
- stmtColumnCnt :: !Int
- stmtParamCnt :: !Int
- stmtWarnCnt :: !Int
 
- getStmtPrepareOK :: Get StmtPrepareOK
Documentation
All support MySQL commands.
Constructors
| COM_QUIT | 0x01 | 
| COM_INIT_DB !ByteString | 0x02 | 
| COM_QUERY !ByteString | 0x03 | 
| COM_PING | 0x0E | 
| COM_BINLOG_DUMP !Word32 !Word16 !Word32 !ByteString | 0x12 binlog-pos, flags(0x01), server-id, binlog-filename | 
| COM_REGISTER_SLAVE !Word32 !ByteString !ByteString !ByteString !Word16 !Word32 !Word32 | 0x15 server-id, slaves hostname, slaves user, slaves password, slaves port, replication rank(ignored), master-id(usually 0) | 
| COM_STMT_PREPARE !ByteString | 0x16 statement | 
| COM_STMT_EXECUTE !StmtID ![MySQLValue] !BitMap | 0x17 stmtId, params | 
| COM_STMT_CLOSE !StmtID | 0x19 stmtId | 
| COM_STMT_RESET !StmtID | 0x1A stmtId | 
| COM_UNSUPPORTED | 
putCommand :: Command -> Put Source #
data StmtPrepareOK Source #
call isOK with this packet return true
Constructors
| StmtPrepareOK | |
| Fields 
 | |
Instances
| Eq StmtPrepareOK Source # | |
| Defined in Database.MySQL.Protocol.Command Methods (==) :: StmtPrepareOK -> StmtPrepareOK -> Bool # (/=) :: StmtPrepareOK -> StmtPrepareOK -> Bool # | |
| Show StmtPrepareOK Source # | |
| Defined in Database.MySQL.Protocol.Command Methods showsPrec :: Int -> StmtPrepareOK -> ShowS # show :: StmtPrepareOK -> String # showList :: [StmtPrepareOK] -> ShowS # | |