OXY API 1.0
OXY API Library Documentation
Loading...
Searching...
No Matches
oxy::connection_t Struct Reference

Representation of a sqlite's connection. More...

#include <connection.hpp>

Public Member Functions

 connection_t (connection_t &&other)=default
 connection_t is movable
 connection_t (const connection_t &)=delete
 connection_t is non-copyable
 connection_t (database_t &db, int flags=SQLITE_OPEN_READONLY)
auto & db ()
auto const & db () const
auto flags () const
 operator database_t & ()
 operator database_t const & () const
bool operator< (const connection_t &other) const
connection_t & operator= (connection_t &&other)=default
connection_t & operator= (const connection_t &)=delete
bool operator== (const connection_t &other) const

Detailed Description

Representation of a sqlite's connection.

This structure encapsulates a SQLite database connection, providing methods for managing the connection, executing SQL statements, and performing various database operations. It is designed to be non-copyable but movable, ensuring proper resource management of the underlying database connection.