MySQL Connector/C++ 9.1.0
MySQL connector library for C and C++ applications
Modules | Files | Classes | Functions
X DevAPI Classes

X DevAPI Classes and types. More...

Modules

 Database operations
 Classes representing yet-to-be-executed database operations.
 
 Classes for result processing
 Classes used to examine results of a statement and documents or rows contained in a result.
 
 Auxiliary types
 

Files

file  xdevapi.h
 The main header for MySQL Connector/C++ DevAPI.
 

Classes

class  Error
 Base class for connector errors. More...
 
class  Error
 Base class for connector errors. More...
 
class  Warning
 An error, warning or other diagnostic information reported by server when executing queries or statements. More...
 
class  SessionSettings
 Represents session options to be passed at session creation time. More...
 
class  ClientSettings
 ClientSettings are used to construct Client objects. More...
 
class  Schema
 Represents a database schema. More...
 
class  Collection
 Represents a collection of documents in a schema. More...
 
class  Table
 Represents a table in a schema. More...
 
class  Session
 Represents a session which gives access to data stored in a data store. More...
 

Functions

internal::Expression expr (std::string &&e)
 Function which indicates that a given string should be treated as expression. More...
 
template<class ... P>
Session getSession (P...p)
 Function to get Session object. More...
 
template<class ... P>
Client getClient (P...p)
 Function to get Client object. More...
 

Detailed Description

X DevAPI Classes and types.

See Connector/C++ X DevAPI Example for introduction.

Function Documentation

◆ expr()

internal::Expression mysqlx::abi2::r0::internal::expr ( std::string &&  e)
inline

Function which indicates that a given string should be treated as expression.

If s is a string value, then in contexts where values are expected, expr(s) treats s as a DevAPI expression. For example statement

table.select("foo > 1").execute();

returns the string "foo 1" for each row in the table while

table.select(expr("foo > 1")).execute();

returns true/false, depending on the value of the expression.

◆ getSession()

Session mysqlx::abi2::r0::getSession ( P...  p)

Function to get Session object.

Parameters
psame as needed by Session constructor.

◆ getClient()

Client mysqlx::abi2::r0::getClient ( P...  p)

Function to get Client object.

Parameters
psame as needed by Client constructor.