diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-01-25 18:53:34 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-01-25 18:53:34 +0300 |
commit | 81ca6a1aed69885827b06f09fb7926e39b5c25a2 (patch) | |
tree | 095aec8e4250f99422f20f78d45fdbf8830a1102 /libodb-mysql/odb/mysql/binding.hxx | |
parent | 4260db6bc3cb9fb3d47d2d4cf0a7b6d49cf1e919 (diff) | |
parent | 3a160a80c788d81e48acf19a2cf68f29cf125dae (diff) |
Merge branch 'libodb-mysql' into multi-package
Diffstat (limited to 'libodb-mysql/odb/mysql/binding.hxx')
-rw-r--r-- | libodb-mysql/odb/mysql/binding.hxx | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/libodb-mysql/odb/mysql/binding.hxx b/libodb-mysql/odb/mysql/binding.hxx new file mode 100644 index 0000000..628233d --- /dev/null +++ b/libodb-mysql/odb/mysql/binding.hxx @@ -0,0 +1,45 @@ +// file : odb/mysql/binding.hxx +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_MYSQL_BINDING_HXX +#define ODB_MYSQL_BINDING_HXX + +#include <odb/pre.hxx> + +#include <cstddef> // std::size_t + +#include <odb/forward.hxx> + +#include <odb/mysql/version.hxx> +#include <odb/mysql/mysql-types.hxx> + +#include <odb/mysql/details/export.hxx> + +namespace odb +{ + namespace mysql + { + class LIBODB_MYSQL_EXPORT binding + { + public: + binding (): bind (0), count (0), version (0) {} + + binding (MYSQL_BIND* b, std::size_t n) + : bind (b), count (n), version (0) + { + } + + MYSQL_BIND* bind; + std::size_t count; + std::size_t version; + + private: + binding (const binding&); + binding& operator= (const binding&); + }; + } +} + +#include <odb/post.hxx> + +#endif // ODB_MYSQL_BINDING_HXX |