ThinSQLite++
A thin, safe and convenient modern C++ wrapper for SQLite API.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Utilities

Classes

class  sqlite_deleter< T >
 Memory deleter that uses sqlite3_free. More...
 
struct  sqlite_allocated
 Base class that makes derived classes be allocated using SQLite. More...
 
struct  sqlite_allocator< T >
 A C++ Allocator that uses SQLite memory allocation functions. More...
 
class  lock_adapter
 A mutex adapter for Lockable concept that works with null and non-null mutexes. More...
 
class  zero_blob
 An efficient blob of zeroes of a given size. More...
 
class  statement_parser
 Parses text containing multiple SQL statements. More...
 
class  auto_reset< Flags >
 RAII wrapper that resets statement on destruction. More...
 
class  basic_string_param< T >
 A reference to a null terminated string. More...
 
class  vtab< Derived >
 Base class for virtual table object implementations. More...
 

Typedefs

using allocated_string = std::unique_ptr<char, sqlite_deleter<char>>
 A string allocated by SQLite.
 
using allocated_bytes = std::unique_ptr<std::byte, sqlite_deleter<std::byte>>
 A byte buffer allocated by SQLite.
 
template<class T >
using span = std::span<T>
 Alias or reimplementation of std::span.
 
using blob_view = span<const std::byte>
 A blob_view is a span of bytes.
 
using string_param = basic_string_param<char>
 Convenience typedef.
 
using u8string_param = basic_string_param<char8_t>
 Convenience typedef. Only available if you compiler/library supports char8_t.
 

Enumerations

enum class  auto_reset_flags : unsigned { none = 0 , reset = 1 , clear_bindings = 2 , all = 3 }
 Bitwise mask of resets to perform for thinsqlitepp::auto_reset. More...
 

Functions

constexpr auto_reset_flags operator| (auto_reset_flags lhs, auto_reset_flags rhs)
 
constexpr auto_reset_flags operator& (auto_reset_flags lhs, auto_reset_flags rhs)
 
constexpr auto_reset_flags operator^ (auto_reset_flags lhs, auto_reset_flags rhs)
 
constexpr auto_reset_flags operator~ (auto_reset_flags arg)
 

Detailed Description

Typedef Documentation

◆ allocated_string

A string allocated by SQLite.

#include <thinsqlitepp/memory.hpp>

◆ allocated_bytes

A byte buffer allocated by SQLite.

#include <thinsqlitepp/memory.hpp>

◆ span

template<class T >
using span = std::span<T>

Alias or reimplementation of std::span.

If std::span is available, thinsqlitepp::span is a typedef to it. Otherwise it is an equivalent class defined in this library

Enumeration Type Documentation

◆ auto_reset_flags

enum class auto_reset_flags : unsigned
strong

Bitwise mask of resets to perform for thinsqlitepp::auto_reset.

This enum supports all the normal bitwise operations: &, |, ^ and ~

Enumerator
none 

Reset nothing.

reset 

Reset the statement (does not affect the bindings)

clear_bindings 

Reset the bindings.

all 

Reset everything.