diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-25 12:13:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-27 10:30:15 +0200 |
commit | 923639283d2bae0b82cb605fa4680a3058c9d973 (patch) | |
tree | 3c122b70129cdd2b502e1f7056eac896c109f03a /odb/location.hxx | |
parent | adfa9bbd04cd3571932ee7675344ca723bfa1eab (diff) |
Add support for defining indexes
New db pragma qualifier: index. New tests: common/index, mysql/index,
pgsql/index.
Diffstat (limited to 'odb/location.hxx')
-rw-r--r-- | odb/location.hxx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/odb/location.hxx b/odb/location.hxx new file mode 100644 index 0000000..a9cc6ad --- /dev/null +++ b/odb/location.hxx @@ -0,0 +1,28 @@ +// file : odb/location.hxx +// copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC +// license : GNU GPL v3; see accompanying LICENSE file + +#ifndef ODB_LOCATION_HXX +#define ODB_LOCATION_HXX + +#include <odb/gcc-fwd.hxx> + +#include <cstddef> +#include <cutl/fs/path.hxx> + +struct location +{ + explicit + location (location_t); + + location (cutl::fs::path const& f, std::size_t l, std::size_t c) + : file (f), line (l), column (c) + { + } + + cutl::fs::path file; + std::size_t line; + std::size_t column; +}; + +#endif // ODB_LOCATION_HXX |