FOSSredder 0.5.0
Loading...
Searching...
No Matches
SqliteDb Class Reference

#include <SqliteDb.h>

Inheritance diagram for SqliteDb:
Collaboration diagram for SqliteDb:

Public Member Functions

 SqliteDb (const std::string &path)
 Open a SQLite database at the given path.
 ~SqliteDb ()
 Close the database connection.
 SqliteDb (const SqliteDb &)=delete
SqliteDb & operator= (const SqliteDb &)=delete
sqlite3 * handle () const noexcept
 Get the raw SQLite handle.
sqlite3 * sqliteHandle () const noexcept override
 Get the raw SQLite handle.
Public Member Functions inherited from ISqlConnectionProvider
virtual ~ISqlConnectionProvider ()=default

Detailed Description

Definition at line 15 of file SqliteDb.h.

Constructor & Destructor Documentation

◆ SqliteDb() [1/2]

SqliteDb::SqliteDb ( const std::string & path)
explicit

Open a SQLite database at the given path.

Parameters
pathSQLite database path.

Definition at line 14 of file SqliteDb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~SqliteDb()

SqliteDb::~SqliteDb ( )

Close the database connection.

Definition at line 36 of file SqliteDb.cpp.

◆ SqliteDb() [2/2]

SqliteDb::SqliteDb ( const SqliteDb & )
delete
Here is the call graph for this function:

Member Function Documentation

◆ handle()

sqlite3 * SqliteDb::handle ( ) const
inlinenoexcept

Get the raw SQLite handle.

Returns
Raw sqlite3 handle.

Definition at line 34 of file SqliteDb.h.

◆ operator=()

SqliteDb & SqliteDb::operator= ( const SqliteDb & )
delete
Here is the call graph for this function:

◆ sqliteHandle()

sqlite3 * SqliteDb::sqliteHandle ( ) const
inlineoverridevirtualnoexcept

Get the raw SQLite handle.

Returns
Raw sqlite3 handle.

Implements ISqlConnectionProvider.

Definition at line 42 of file SqliteDb.h.


The documentation for this class was generated from the following files: