|
const std::string | m_table_name |
|
const int | m_version |
|
const std::string | m_type_name |
|
const EntryVec & | m_col_table |
| The front-end QofIdType.
|
|
Definition at line 34 of file gnc-book-sql.h.
◆ load_all()
Load all objects of m_type in the database into memory.
- Parameters
-
Implements GncSqlObjectBackend.
Definition at line 166 of file gnc-book-sql.cpp.
168 g_return_if_fail (sql_be != NULL);
170 std::stringstream sql;
171 sql <<
"SELECT * FROM " << BOOK_TABLE;
172 auto stmt = sql_be->create_statement_from_sql(sql.str());
176 auto row = result->begin();
181 if (row == result->end())
183 sql_be->set_loading(
false);
184 commit (sql_be, QOF_INSTANCE (sql_be->book()));
185 sql_be->set_loading(
true);
190 load_single_book (sql_be, *row);
GncSqlResultPtr execute_select_statement(const GncSqlStatementPtr &stmt) const noexcept
Executes an SQL SELECT statement and returns the result rows.
virtual bool commit(GncSqlBackend *sql_be, QofInstance *inst)
UPDATE/INSERT a single instance of m_type_name into the database.
The documentation for this class was generated from the following files: