diff options
Diffstat (limited to 'mysql/index/test.hxx')
-rw-r--r-- | mysql/index/test.hxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql/index/test.hxx b/mysql/index/test.hxx new file mode 100644 index 0000000..65870ff --- /dev/null +++ b/mysql/index/test.hxx @@ -0,0 +1,21 @@ +// file : mysql/template/test.hxx +// copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef TEST_HXX +#define TEST_HXX + +#include <string> +#include <odb/core.hxx> + +#pragma db object +struct object +{ + #pragma db id auto + unsigned long id_; + + std::string s; + #pragma db index method("BTREE") member(s, "(200) DESC") +}; + +#endif // TEST_HXX |