From 923639283d2bae0b82cb605fa4680a3058c9d973 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 25 Jul 2012 12:13:38 +0200 Subject: Add support for defining indexes New db pragma qualifier: index. New tests: common/index, mysql/index, pgsql/index. --- odb/location.hxx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 odb/location.hxx (limited to 'odb/location.hxx') 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 + +#include +#include + +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 -- cgit v1.1