#include <client.h>
Public Member Functions | |
virtual Session * | getSession () |
virtual void | setSession (Session *session_arg) |
virtual int | getFileDescriptor ()=0 |
virtual bool | isConnected ()=0 |
virtual bool | flush ()=0 |
virtual void | close ()=0 |
virtual bool | authenticate ()=0 |
virtual bool | isConsole () const |
virtual bool | isInteractive () const |
virtual catalog::Instance::shared_ptr | catalog () |
virtual bool | readCommand (char **packet, uint32_t &packet_length)=0 |
virtual void | sendOK ()=0 |
virtual void | sendEOF ()=0 |
virtual void | sendError (const drizzled::error_t sql_errno, const char *err)=0 |
virtual void | sendFields (List< Item > &)=0 |
virtual void | store (Field *from)=0 |
virtual void | store ()=0 |
virtual void | store (int32_t from)=0 |
virtual void | store (uint32_t from)=0 |
virtual void | store (int64_t from)=0 |
virtual void | store (uint64_t from)=0 |
virtual void | store (double from, uint32_t decimals, String *buffer)=0 |
virtual void | store (const type::Time *from) |
virtual void | store (const char *from) |
virtual void | store (const char *from, size_t length)=0 |
virtual void | store (str_ref from) |
virtual bool | haveError ()=0 |
virtual bool | wasAborted ()=0 |
Protected Attributes | |
Session * | session |
This class allows new client sources to be written. This could be through network protocols, in-process threads, or any other client source that can provide commands and handle result sets. The current implementation is file-descriptor based, so for non-fd client sources (like from another thread), derived classes will need to use a pipe() for event notifications.
|
pure virtual |
Perform handshake and authorize client if needed.
Implemented in drizzle_plugin::ClientMySQLProtocol, drizzled::plugin::client::Concurrent, and drizzled::plugin::NullClient.
|
pure virtual |
Close the client object.
Implemented in drizzle_plugin::ClientMySQLProtocol, drizzled::plugin::client::Concurrent, and drizzled::plugin::NullClient.
|
pure virtual |
Flush all data that has been buffered with store() methods.
Boolean | indicating success or failure. |
Implemented in drizzle_plugin::ClientMySQLProtocol, drizzled::plugin::client::Concurrent, and drizzled::plugin::NullClient.
|
pure virtual |
Get file descriptor associated with client object.
File | descriptor that is attached, -1 if none. |
Implemented in drizzle_plugin::ClientMySQLProtocol, drizzled::plugin::client::Concurrent, and drizzled::plugin::NullClient.
|
inlinevirtual |
|
pure virtual |
Check to see if the client is currently connected.
Boolean | value representing connected state. |
Implemented in drizzle_plugin::ClientMySQLProtocol, drizzled::plugin::client::Concurrent, and drizzled::plugin::NullClient.
|
pure virtual |
Read command from client.
Implemented in drizzle_plugin::ClientMySQLProtocol, drizzled::plugin::client::Concurrent, and drizzled::plugin::NullClient.
Send field list for result set.
Implemented in drizzle_plugin::ClientMySQLProtocol, drizzled::plugin::client::Concurrent, drizzled::plugin::NullClient, and drizzled::plugin::client::Cached.
|
inlinevirtual |