KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SCRATCH_DATABASE Struct Reference

A throwaway SQLite database whose tables are created by the test. More...

Public Member Functions

 SCRATCH_DATABASE ()
 
 ~SCRATCH_DATABASE ()
 
std::string ConnectionString () const
 
void Execute (const std::string &aSql) const
 

Public Attributes

std::filesystem::path m_path
 

Detailed Description

A throwaway SQLite database whose tables are created by the test.

Definition at line 118 of file test_database.cpp.

Constructor & Destructor Documentation

◆ SCRATCH_DATABASE()

SCRATCH_DATABASE::SCRATCH_DATABASE ( )
inline

Definition at line 120 of file test_database.cpp.

References m_path.

◆ ~SCRATCH_DATABASE()

SCRATCH_DATABASE::~SCRATCH_DATABASE ( )
inline

Definition at line 126 of file test_database.cpp.

References m_path.

Member Function Documentation

◆ ConnectionString()

std::string SCRATCH_DATABASE::ConnectionString ( ) const
inline

Definition at line 132 of file test_database.cpp.

References m_path.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and Execute().

◆ Execute()

void SCRATCH_DATABASE::Execute ( const std::string & aSql) const
inline

Definition at line 137 of file test_database.cpp.

References ConnectionString().

Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().

Member Data Documentation

◆ m_path

std::filesystem::path SCRATCH_DATABASE::m_path

Definition at line 144 of file test_database.cpp.

Referenced by ConnectionString(), SCRATCH_DATABASE(), and ~SCRATCH_DATABASE().


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