Commit Graph

47 Commits

Author SHA1 Message Date
64a1352f97 Added text to TableBuilder. 2021-11-20 01:39:52 +01:00
4393c60e5f Added get_cell_float and get_cell_double helpers to QueryResult. 2021-11-14 21:04:48 +01:00
1bd90ceb4a Added more helpers to QueryBuilder. 2021-11-14 19:22:49 +01:00
1ec66db3c7 Added smallint, float, and double types to the TableBuilder. 2021-11-14 16:52:09 +01:00
ad632993d0 Added integer with length and a tinyinteger to TableBuilder. 2021-11-14 13:56:25 +01:00
21558cb09a The database sub system now uses only my string. 2021-11-01 17:49:10 +01:00
faac12d3b1 Now QueryBuilder is using my string. 2021-11-01 17:31:04 +01:00
cfb5f877c8 Now instead of having an escaped version of the methods that has string parmeters in QueryBuilder, they have an unescaped version, and the base version escapes. Having it like this is a lot safer. 2021-11-01 17:23:08 +01:00
6073ef90c9 Fix typo. 2021-11-01 17:00:55 +01:00
02c4294cda Now QueryBilder, QueryResult, and TableBullder are returned wrapped into a Ref<> from the database subsystem by default. 2021-11-01 16:57:22 +01:00
f69597c723 Properly quote string in 2 sqlite query builder methods. 2021-08-22 22:32:18 +02:00
928475d733 Added more things to QueryBuilder. 2021-08-22 21:44:20 +02:00
4228448fc1 Added and and or to the query builder, and implemented offset and limit for the sqlite query builder. 2021-08-20 13:14:06 +02:00
1ae34a3500 Added more getters to the query result. 2021-08-20 12:58:37 +02:00
af05bd037c More work on the query builder. 2021-08-20 12:49:57 +02:00
5050f31ba0 Update sql statement for the query builder. 2021-08-20 12:11:27 +02:00
2c5293f959 Lost of work on the query/table builders. 2021-08-20 01:32:43 +02:00
d2a0f25369 Lots of work on the table builder. 2021-08-19 23:55:16 +02:00
437b084831 tbale builder for the sqlite backend. 2021-08-19 22:24:16 +02:00
3f308cd524 Added a query builder for sqlite. 2021-08-19 22:18:11 +02:00
cf51d4cd34 Fix build when the databases are enabled. 2021-08-19 22:07:31 +02:00
8ebb648d37 More work on the query builders. 2021-08-19 22:03:22 +02:00
8de082ffba Started reworking the QueryBuilder. Now instead just creating a query string (when finished) it will actually be able to handle querying, escapes, and also prepared statements. 2021-08-19 14:12:02 +02:00
a86b5c2670 Added escape methods to the Database class. Implemented them for the MySQL, and Sqlite backend. 2021-07-08 18:52:59 +02:00
7279035237 Moved the database related classes in core to a subfolder aswell. 2021-05-15 13:54:28 +02:00
9ce111dd62 Fix slite3 includes, now the project will build even if sqlite is not installed. 2021-05-01 23:35:37 +02:00
06ef029280 Implement sqlite result, and more things to the sqlite db backend. 2021-05-01 21:53:01 +02:00
ec8de94827 Little work on the sqlite database backend. 2021-05-01 20:31:52 +02:00
5ea0559839 Fix compile. 2021-01-05 19:33:24 +01:00
ad31e648ed Fix lib's name. 2020-12-26 17:48:26 +01:00
7ea1f4dada Added the sqlite3 amalgamation, and the build system uses it by default. 2020-12-08 13:29:57 +01:00
53a2a651d6 Implement drop table for the table builder, fix a warning, and made the message page's migration runnable multiple times (for now). 2020-12-02 00:49:17 +01:00
b99cbf0164 Implemented a QueryResult object for mysql. messagepage now queries the db too. 2020-12-02 00:43:46 +01:00
b063237399 Initial TableBuilder implementation, and simple migrations. 2020-12-01 23:37:10 +01:00
7a81053ebb Now the mysql query builder is usable. 2020-12-01 22:23:28 +01:00
8b4efc530d Added the QueryBuilder class, and started working on it's api. 2020-12-01 21:48:13 +01:00
663ddb5bc9 Started work on the mysql database implementation. Mostly tests. 2020-12-01 18:29:41 +01:00
4add0d14ea Now the database backends will actually compile their .cpp files. Also small cleanups. 2020-12-01 15:28:59 +01:00
d713aeab8e Moved the db initialization code to a new header. 2020-12-01 15:01:02 +01:00
35bd94de7e Renamed the database classes to be inline with the new naming scheme. 2020-12-01 14:56:05 +01:00
e3338f9d3b Now the postgres and sqlite connection also inherits from Database, and made main.cpp register them if they are present. 2020-12-01 14:53:32 +01:00
9bddaba8bc Implement basic functionality of the DatabaseManager. Also made MysqlConnection inherint from Database, and it's now possible to create instances from it. 2020-12-01 14:47:24 +01:00
07b262c841 Add defines for all 3 db backends. 2020-11-28 14:51:42 +01:00
d36a344980 Also link to sqlite 3 if present. 2020-11-28 14:30:50 +01:00
baf6d529dc Only link to mariadb if both mariadb and mysql is present. Also print the fact. 2020-11-28 14:21:32 +01:00
a54178e1ee Link to postgre sql if found aswell. 2020-11-28 14:18:58 +01:00
9c7be6e808 Mysql database module. Only implemented compiling / linking. 2020-11-27 23:44:56 +01:00