3b35c27811
Some bug fixes in db_
2020-10-09 10:08:13 +01:00
0fc012815b
Convenience functions in db_query (2 of 3)
2020-10-08 16:08:39 +01:00
e0d0515188
Created a bunch of convenience functions in db_ (1 of 2)
2020-10-08 12:32:07 +01:00
3a213123c4
Created a couple of delete helpers
2020-10-07 17:16:21 +01:00
02b108635d
Better handling of blobs, query print length limited by compiler flag
2020-10-07 16:59:24 +01:00
7aab81aa2d
Debug query colour switch
2020-10-07 15:46:31 +01:00
0787fd8e3c
Changed default behaviour of Count and Delete queries to delete the where builder
2020-10-07 12:47:08 +01:00
b62a3f0c99
Flag to free the where builder when compiling
2020-10-07 12:40:04 +01:00
12db8ea12c
Renamed WhereBuilder destroyer to free
2020-10-07 11:40:06 +01:00
023dc8e2b3
Fixed some query issues
2020-10-07 11:34:06 +01:00
42cb62697f
Fixed some memory leaks
2020-10-07 11:33:39 +01:00
d30bcf3ddf
Added some more convenience queries
2020-10-06 17:47:27 +01:00
eba4a6027c
Print SQL query if SQL_DEBUG is defined (or in debug builds)
2020-10-06 15:01:10 +01:00
cb9361fcc9
Collection of changes (mostly to db source)
...
- Replaced string malloc()... calls with strmemcpy() from strext.h where appropriate
- Added table name to column struct (useful for WHERE's)
- Changed the column type enum to powers of 2 (potential for NULLABLE flag by or'ing)
- Added last_qry and num_queries to connection struct
- Fixed destruct tables stopping on error
- Renamed owners to users except in the meta table
- Fixed the 'tableExists' query
2020-10-02 12:46:21 +01:00
f15017501c
Minor refactoring to db_column
...
Typedef'd an enum
Renamed a column detail variable
Added debug query print
2020-09-23 13:06:45 +01:00
02d11c75b2
Some changes to db
...
- Generic ScalarQuery is no longer used so removed
- Handle the case where the column length is > 0 but the number of rows is 0
2020-09-15 17:31:51 +01:00
69340c25e8
Some minor modifications to database files
2020-09-15 15:00:58 +01:00
3c2742a214
Direct database side of things implemented
2020-09-15 13:47:54 +01:00