The Battle for Wesnoth  1.15.3+dev
Classes | Namespaces | Macros | Typedefs
statement.hpp File Reference
#include <mariadb++/last_error.hpp>
#include <mariadb++/result_set.hpp>
Include dependency graph for statement.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mariadb::statement
 Class representing a prepared statement with binding functionality. More...
 

Namespaces

 mariadb
 

Macros

#define MAKE_SETTER_SIG(nm, type, fq)   void fq set_##nm(u32 index, type value)
 
#define MAKE_SETTER_DECL(nm, type)   MAKE_SETTER_SIG(nm, type, )
 
#define MAKE_SETTER_BODY
 
#define MAKE_SETTER(nm, type)
 

Typedefs

typedef std::shared_ptr< connection > mariadb::connection_ref
 
typedef std::shared_ptr< statementmariadb::statement_ref
 

Macro Definition Documentation

◆ MAKE_SETTER

#define MAKE_SETTER (   nm,
  type 
)
Value:
MAKE_SETTER_BODY
#define MAKE_SETTER_SIG(nm, type, fq)
Definition: statement.hpp:17
static void statement(LexState *ls)
Definition: lparser.cpp:1537

Definition at line 26 of file statement.hpp.

Referenced by mariadb::statement::query().

◆ MAKE_SETTER_BODY

#define MAKE_SETTER_BODY
Value:
if (index >= m_data->m_bind_count) throw std::out_of_range("Field index out of range"); \
\
bind& bind = *m_data->m_binds.at(index);
std::size_t index(const std::string &str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.
Definition: unicode.cpp:71

Definition at line 21 of file statement.hpp.

Referenced by mariadb::statement::set_null().

◆ MAKE_SETTER_DECL

#define MAKE_SETTER_DECL (   nm,
  type 
)    MAKE_SETTER_SIG(nm, type, )

Definition at line 19 of file statement.hpp.

◆ MAKE_SETTER_SIG

#define MAKE_SETTER_SIG (   nm,
  type,
  fq 
)    void fq set_##nm(u32 index, type value)

Definition at line 17 of file statement.hpp.