Botan 3.6.1
Crypto and TLS for C&
Botan::SQL_Database Class Referenceabstract

#include <database.h>

Inheritance diagram for Botan::SQL_Database:
Botan::Sqlite3_Database

Classes

class  SQL_DB_Error
 
class  Statement
 

Public Member Functions

virtual void create_table (std::string_view table_schema)=0
 
virtual size_t exec (std::string_view sql)
 
virtual bool is_threadsafe () const
 
virtual std::shared_ptr< Statementnew_statement (std::string_view base_sql) const =0
 
virtual size_t row_count (std::string_view table_name)=0
 
virtual size_t rows_changed_by_last_statement ()=0
 
virtual ~SQL_Database ()=default
 

Detailed Description

Definition at line 19 of file database.h.

Constructor & Destructor Documentation

◆ ~SQL_Database()

virtual Botan::SQL_Database::~SQL_Database ( )
virtualdefault

Member Function Documentation

◆ create_table()

virtual void Botan::SQL_Database::create_table ( std::string_view table_schema)
pure virtual

Implemented in Botan::Sqlite3_Database.

◆ exec()

virtual size_t Botan::SQL_Database::exec ( std::string_view sql)
inlinevirtual

Definition at line 76 of file database.h.

76{ return new_statement(sql)->spin(); }
virtual std::shared_ptr< Statement > new_statement(std::string_view base_sql) const =0

◆ is_threadsafe()

virtual bool Botan::SQL_Database::is_threadsafe ( ) const
inlinevirtual

Reimplemented in Botan::Sqlite3_Database.

Definition at line 78 of file database.h.

78{ return false; }

◆ new_statement()

virtual std::shared_ptr< Statement > Botan::SQL_Database::new_statement ( std::string_view base_sql) const
pure virtual

Implemented in Botan::Sqlite3_Database.

◆ row_count()

virtual size_t Botan::SQL_Database::row_count ( std::string_view table_name)
pure virtual

Implemented in Botan::Sqlite3_Database.

◆ rows_changed_by_last_statement()

virtual size_t Botan::SQL_Database::rows_changed_by_last_statement ( )
pure virtual

Implemented in Botan::Sqlite3_Database.


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