mysql-pure-1.0.2: pure haskell MySQL driver
Copyright(c) Winterland 2016
LicenseBSD
Maintainerdrkoster@qq.com
Stabilityexperimental
PortabilityPORTABLE
Safe HaskellSafe-Inferred
LanguageHaskell2010

Database.MySQL.Protocol.Command

Description

Common MySQL commands supports.

Synopsis

Documentation

data Command Source #

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 

Instances

Instances details
Show Command Source # 
Instance details

Defined in Database.MySQL.Protocol.Command

Eq Command Source # 
Instance details

Defined in Database.MySQL.Protocol.Command

Methods

(==) :: Command -> Command -> Bool #

(/=) :: Command -> Command -> Bool #

data StmtPrepareOK Source #

call isOK with this packet return true

Constructors

StmtPrepareOK