diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-12 09:28:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-20 15:45:46 +0200 |
commit | 043d8fabcf15918e22efdbde41af4880b23c0104 (patch) | |
tree | 3d1aed8a2c8dd30d61417e5029390ba0865ad88b /mssql/query/test.hxx | |
parent | 3cc019d0df41400f9cf921040adab0ae198b570a (diff) |
Query support for SQL Server
Diffstat (limited to 'mssql/query/test.hxx')
-rw-r--r-- | mssql/query/test.hxx | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/mssql/query/test.hxx b/mssql/query/test.hxx new file mode 100644 index 0000000..964d893 --- /dev/null +++ b/mssql/query/test.hxx @@ -0,0 +1,40 @@ +// file : mssql/query/test.hxx +// author : Constantin Michael <constantin@codesynthesis.com> +// copyright : Copyright (c) 2009-2011 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_; + + unsigned int num; + + #pragma db type ("SMALLMONEY") + int smoney; + + #pragma db type ("MONEY") + double money; + + #pragma db type ("VARCHAR(256)") + std::string str; + + #pragma db type ("NVARCHAR(128)") + std::wstring nstr; + + #pragma db type ("VARCHAR(max)") + std::string lstr; + + #pragma db type ("NVARCHAR(max)") + std::wstring lnstr; +}; + +#endif // TEST_HXX |