boost_sqlite 1
A sqlite C++ library
Loading...
Searching...
No Matches
meta_data.hpp
1//
2// Copyright (c) 2022 Klemens Morgenstern (klemens.morgenstern@gmx.net)
3//
4// Distributed under the Boost Software License, Version 1.0. (See accompanying
5// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6//
7
8#ifndef BOOST_SQLITE_META_DATA_HPP
9#define BOOST_SQLITE_META_DATA_HPP
10
11#include <boost/sqlite/detail/config.hpp>
12#include <boost/sqlite/connection.hpp>
13#include <boost/sqlite/cstring_ref.hpp>
14
15BOOST_SQLITE_BEGIN_NAMESPACE
16
17
18struct connection ;
19
34
37BOOST_SQLITE_DECL
38column_meta_data table_column_meta_data(connection & conn,
39 cstring_ref db_name, cstring_ref table_name, cstring_ref column_name,
40 system::error_code & ec, error_info &ei);
41BOOST_SQLITE_DECL
42column_meta_data table_column_meta_data(connection & conn,
43 cstring_ref table_name, cstring_ref column_name,
44 system::error_code & ec, error_info &ei);
45
46BOOST_SQLITE_DECL
47column_meta_data table_column_meta_data(connection & conn,
48 cstring_ref db_name, cstring_ref table_name, cstring_ref column_name);
49BOOST_SQLITE_DECL
50column_meta_data table_column_meta_data(connection & conn,
51 cstring_ref table_name, cstring_ref column_name);
53
55BOOST_SQLITE_END_NAMESPACE
56
57
58#endif //BOOST_SQLITE_META_DATA_HPP
The metadata of a column.
Definition meta_data.hpp:22
bool auto_increment
true if column is AUTOINCREMENT
Definition meta_data.hpp:32
cstring_ref data_type
Data type fo the column.
Definition meta_data.hpp:24
bool not_null
true if column has a NOT NULL constraint
Definition meta_data.hpp:28
cstring_ref collation
Name of default collation sequence.
Definition meta_data.hpp:26
bool primary_key
true if column is part of the PRIMARY KEY
Definition meta_data.hpp:30
main object for a connection to a database.
Small wrapper for a null-terminated string that can be directly passed to C APIS.
Additional information about error conditions stored in an sqlite-allocate string.
Definition error.hpp:33