MySQL Connector/C++  8.0.11
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  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

mysqlx::internal::Expression expr (string &&e)
 Function which indicates that a given string should be treated as expression. More...
 

Detailed Description

X DevAPI Classes and types.

See Connector/C++ 8.0 X DevAPI Reference for introduction.

Function Documentation

◆ expr()

mysqlx::internal::Expression mysqlx::internal::expr ( 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.