GnuCash  4.12-527-g05ffd3d4eb
gnc-vendor-sql.h
Go to the documentation of this file.
1 /*
2  * gnc-vendor-sql.h -- vendor sql backend
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of
7  * the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, contact:
16  *
17  * Free Software Foundation Voice: +1-617-542-5942
18  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
19  * Boston, MA 02110-1301, USA gnu@gnu.org
20  */
21 
30 #ifndef GNC_VENDOR_SQL_H
31 #define GNC_VENDOR_SQL_H
32 
33 #include "gnc-sql-object-backend.hpp"
34 
36 {
37 public:
39  void load_all(GncSqlBackend*) override;
40  bool commit(GncSqlBackend*, QofInstance*) override;
41  bool write(GncSqlBackend*) override;
42 };
43 
44 
45 #endif /* GNC_VENDOR_SQL_H */
bool write(GncSqlBackend *) override
Write all objects of m_type_name to the database.
bool commit(GncSqlBackend *, QofInstance *) override
UPDATE/INSERT a single instance of m_type_name into the database.
Encapsulates per-class table schema with functions to load, create a table, commit a changed front-en...
void load_all(GncSqlBackend *) override
Load all objects of m_type in the database into memory.
Main SQL backend structure.