Commit Graph
100 Commits
Author SHA1 Message Date
bwilliams f2f48cac5d Timestamp written as a string so escape required 2020-11-09 12:56:12 +00:00
bwilliams 7eaf3fd84c Minor version bump, slew of minor fixes and documentation to get this used 2020-11-09 12:50:44 +00:00
bwilliams f0e47fb9eb Modifications to metadata and meta_ext handling 2020-11-09 12:41:21 +00:00
bwilliams 0b7fd87036 Add better indexes and primary keys 2020-11-09 12:40:42 +00:00
bwilliams 5b6784c07a R->modb handling of objects coded roughly 2020-11-09 12:40:20 +00:00
bwilliams 952b7e3c9e Fixed mysql/mariadb compatibility issue 2020-11-09 12:39:04 +00:00
bwilliams 0a95f19d31 Sometimes the timestamp is provided as a single double, not a vector 2020-11-09 12:38:44 +00:00
bwilliams f6af7b7e3c Miss-counted const string length 2020-11-09 12:38:06 +00:00
bwilliams c93e367700 Better handling of NULL db values 2020-11-09 12:37:49 +00:00
bwilliams af46d0424e Added length to objects table 2020-11-09 12:37:21 +00:00
bwilliams da07391042 Un-documented exports of functions to get things working 2020-11-09 12:35:45 +00:00
bwilliams 179cc28502 Added the ability to get the last run query in R 2020-11-09 12:35:10 +00:00
bwilliams e5e02c40ec Initial R function implementations 2020-10-15 16:25:44 +01:00
bwilliams 60f1757a5a Added R methods to library defintion & updated Makevars generator 2020-10-15 16:25:14 +01:00
bwilliams e17d808357 Fixed username using non-const variant 2020-10-15 16:24:35 +01:00
bwilliams 727b497eca R->c c->R code 2020-10-15 14:47:19 +01:00
bwilliams 4a6a3c5673 Updates to existing R->c files 2020-10-15 12:52:50 +01:00
bwilliams bcd206dcf3 Make const versions of strings in structs to avoid string copying & pass objects to create/update instead of values 2020-10-15 12:36:27 +01:00
bwilliams 880f9c04e1 Sight change in return values 2020-10-15 12:12:50 +01:00
bwilliams ff218def1b Metadata Extended handling implemented 2020-10-15 12:11:51 +01:00
bwilliams a47cb96c84 Take advantage of new maps query 2020-10-15 12:10:57 +01:00
bwilliams 35091141f5 Don't try to insert maps if there are none 2020-10-15 12:07:16 +01:00
bwilliams f0df7a64bb Query to get ID maps 2020-10-15 12:07:03 +01:00
bwilliams 663d8e4f28 Zero the parameters if no results found 2020-10-15 11:29:31 +01:00
bwilliams b5c05732de Fixed incorrect column names 2020-10-15 11:28:59 +01:00
bwilliams 572cb38e0f Changed default max length of VARCHAR from 4096 to 255 with a new variable to configure it 2020-10-15 11:05:49 +01:00
bwilliams dea358d146 Renamed Manage.R -> Database.R 2020-10-15 11:03:18 +01:00
bwilliams 2bf9b2bf8d Fixed memory leak 2020-10-09 13:30:16 +01:00
bwilliams 529dc29850 Whitespace removed 2020-10-09 13:27:24 +01:00
bwilliams 7e79c2efe9 Fixed copy-paste error 2020-10-09 13:27:05 +01:00
bwilliams a01af77bcd Added function to get metadata by group 2020-10-09 13:26:53 +01:00
bwilliams 4b270da082 Removed types file and put each type struct with the code for that type 2020-10-09 10:31:29 +01:00
bwilliams 974a6bf7e6 Renamed meta table to metadata 2020-10-09 10:23:58 +01:00
bwilliams 2f0a9caa77 Split accounting into groups and users 2020-10-09 10:23:49 +01:00
bwilliams 296eb47198 Code for metadata and objects 2020-10-09 10:11:58 +01:00
bwilliams 53275002bf Added types for metadata, objects and a draft for extended metadata 2020-10-09 10:11:19 +01:00
bwilliams 24b4cff430 Removed db helpers from modb (3 of 3) 2020-10-09 10:09:31 +01:00
bwilliams 3b35c27811 Some bug fixes in db_ 2020-10-09 10:08:13 +01:00
bwilliams 0fc012815b Convenience functions in db_query (2 of 3) 2020-10-08 16:08:39 +01:00
bwilliams f3a15fddc8 Flipped params of wherebuilder (breaking commit) 2020-10-08 16:06:11 +01:00
bwilliams ae61432beb Handle NULL strings 2020-10-08 15:17:53 +01:00
bwilliams 4ac935e478 NULL string check on escape 2020-10-08 13:17:51 +01:00
bwilliams e0d0515188 Created a bunch of convenience functions in db_ (1 of 2) 2020-10-08 12:32:07 +01:00
bwilliams 83a9093d97 created/updated/deleted are 64bit signed not 32bit unsigned 2020-10-08 10:23:37 +01:00
bwilliams d0dd1c3970 Renamed metadata table definition 2020-10-08 10:21:51 +01:00
bwilliams 1c79c56d61 Convenience functions for moving/copying column data strings & blobs 2020-10-08 10:21:17 +01:00
bwilliams 6035772774 NULL guard pointers 2020-10-08 10:18:30 +01:00
bwilliams 27ffe3177f Use the delete helpers 2020-10-07 17:16:40 +01:00
bwilliams 3a213123c4 Created a couple of delete helpers 2020-10-07 17:16:21 +01:00
bwilliams 02b108635d Better handling of blobs, query print length limited by compiler flag 2020-10-07 16:59:24 +01:00
bwilliams fb92672739 Better blob handling (also better debug viewing) 2020-10-07 16:26:57 +01:00
bwilliams 29b06e0ad2 Handle blobs slightly differently from strings (hex encode them) 2020-10-07 16:17:53 +01:00
bwilliams 1496482f80 Refactored fetching groups and members 2020-10-07 15:47:34 +01:00
bwilliams 7aab81aa2d Debug query colour switch 2020-10-07 15:46:31 +01:00
bwilliams 022bc6a35d Simplified database creation 2020-10-07 15:09:29 +01:00
bwilliams 19cac8d09f Fixed potential segfault 2020-10-07 15:07:10 +01:00
bwilliams fb5bcf8967 Fixed some invalid queries 2020-10-07 15:06:57 +01:00
bwilliams 37514e7357 Renamed manage to database prior to some restructuring 2020-10-07 14:52:54 +01:00
bwilliams 65a8a8960b Refactored MODB management 2020-10-07 14:47:24 +01:00
bwilliams 3847818116 modbTableName now takes an optional encapsulation char 2020-10-07 14:37:39 +01:00
bwilliams 0ab65604e0 Split implementation of private functions into private files 2020-10-07 13:36:45 +01:00
bwilliams 8fc064e919 Renamed manage to management 2020-10-07 13:36:09 +01:00
bwilliams 75bac590f1 Created user/group handling in c 2020-10-07 13:09:17 +01:00
bwilliams 6335951046 Added a join helper 2020-10-07 13:01:36 +01:00
bwilliams 0787fd8e3c Changed default behaviour of Count and Delete queries to delete the where builder 2020-10-07 12:47:08 +01:00
bwilliams b62a3f0c99 Flag to free the where builder when compiling 2020-10-07 12:40:04 +01:00
bwilliams 12db8ea12c Renamed WhereBuilder destroyer to free 2020-10-07 11:40:06 +01:00
bwilliams 023dc8e2b3 Fixed some query issues 2020-10-07 11:34:06 +01:00
bwilliams 42cb62697f Fixed some memory leaks 2020-10-07 11:33:39 +01:00
bwilliams d30bcf3ddf Added some more convenience queries 2020-10-06 17:47:27 +01:00
bwilliams e0b7e01ab1 Moved createColString into db_column as createColumn 2020-10-06 16:22:09 +01:00
bwilliams 8bf9be5b83 Proper handling of MySQL timestamp format<->unix timestamps 2020-10-06 15:51:38 +01:00
bwilliams d8a95220c0 Change in logging string 2020-10-06 15:01:26 +01:00
bwilliams eba4a6027c Print SQL query if SQL_DEBUG is defined (or in debug builds) 2020-10-06 15:01:10 +01:00
bwilliams 4937b58c98 Typedef'd some structs to make code readability easier 2020-10-06 15:00:13 +01:00
bwilliams 14032f98cf Unique username and email for users and unique name for groups 2020-10-06 13:37:39 +01:00
bwilliams 76486ade5c Group and User index elevated to primary key 2020-10-06 13:31:04 +01:00
bwilliams 681ad1a533 Fixed use allocation 2020-10-06 13:27:00 +01:00
bwilliams 2a80789f1d Auto increment ID for groups and users 2020-10-06 13:23:58 +01:00
bwilliams cf7ee1cf73 Added auto-increment ID column 2020-10-06 13:23:31 +01:00
bwilliams 33e70adf88 Added string builder overload to db_value 2020-10-06 13:20:53 +01:00
bwilliams 44ad06a819 Added some convenience methods for building column names 2020-10-06 11:22:05 +01:00
bwilliams f64b9474cb Fixed some boolean logic issues 2020-10-06 11:21:31 +01:00
bwilliams abec0e5800 Added a selectColumn method for finding a column by name 2020-10-06 10:56:29 +01:00
bwilliams 2e17d6f75f Added a str_builder variant of compileWhere/compileLogic 2020-10-06 10:55:49 +01:00
bwilliams c720320b5c Added missing functions to NAMESPACE 2020-10-05 17:43:47 +01:00
bwilliams f9e4582caa Added modb_use to initR 2020-10-05 17:40:45 +01:00
bwilliams 6e50ca145b Fixed redefinition compile error 2020-10-05 17:30:54 +01:00
bwilliams ca594a2c0b Added modb_use to R and the c handler + moved the connection referencing to a helpers file 2020-10-05 17:30:27 +01:00
bwilliams cbbda5378f Header definition macros 2020-10-05 17:27:23 +01:00
bwilliams 5ef02c9c8f Moved definitions from modb to modb_manage (2 of 2) 2020-10-05 17:24:33 +01:00
bwilliams 989662942e Moved definitions from modb to modb_manage (1 of 2) 2020-10-05 17:23:37 +01:00
bwilliams 406fe9e057 Fixed the testing of table existance 2020-10-05 17:03:07 +01:00
bwilliams eff16310fc Link an MODB name to a stored connection for easier usage 2020-10-05 17:02:52 +01:00
bwilliams 04a5e6ae27 Change the result of create functions to booleans 2020-10-05 17:00:59 +01:00
bwilliams cc367d190a Moved the creation of the meta-extended table to the private implementation 2020-10-05 17:00:34 +01:00
bwilliams 9c0939ed26 Hide db_where_builder_p methods from export (GCC only) 2020-10-05 15:55:20 +01:00
bwilliams 5c7c2e71c9 Updated README.md 2020-10-02 13:20:49 +01:00
bwilliams 907d848791 Added R methods and their c counterparts for connection and database management 2020-10-02 13:12:03 +01:00
bwilliams 91013ea064 Added some ignores 2020-10-02 12:47:52 +01:00