-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
B_DB: store the sql queries in std::map
We now have the queries stored in separate files for each query in src/cats/dml. Header files are created from those queries and are compiled in. During runtime, a std::map is created holding the query name and query text. The sql calls use the query_name which is much more readable than the number that we had before.
- Loading branch information
Showing
162 changed files
with
2,448 additions
and
889 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
@backenddir@/libbareoscats-mysql*.so | ||
@scriptdir@/ddl/*/mysql*.sql | ||
@scriptdir@/dml/mysql.bdbqf | ||
/usr/share/dbconfig-common/data/bareos-database-common/install/mysql | ||
/usr/share/dbconfig-common/data/bareos-database-common/upgrade/mysql/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
@backenddir@/libbareoscats-postgresql*.so | ||
@scriptdir@/ddl/*/postgresql*.sql | ||
@scriptdir@/dml/postgresql.bdbqf | ||
/usr/share/dbconfig-common/data/bareos-database-common/install/pgsql | ||
/usr/share/dbconfig-common/data/bareos-database-common/upgrade-dbadmin/pgsql/* | ||
/usr/share/dbconfig-common/data/bareos-database-common/upgrade/pgsql/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
@backenddir@/libbareoscats-sqlite3*.so | ||
@scriptdir@/ddl/*/sqlite3*.sql | ||
@scriptdir@/dml/sqlite3.bdbqf | ||
/usr/share/dbconfig-common/data/bareos-database-common/install/sqlite3 | ||
/usr/share/dbconfig-common/data/bareos-database-common/upgrade/sqlite3/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.