J. King
8ebcb01cb5
Made out-of-order transaction handling more predictable
7 years ago
J. King
2083c6e397
Change transactions to auto-rollback on exceptions
7 years ago
J. King
f902346b6c
Eliminated passing of RuntimeData instances
- RuntimeData has now been replaced by a single static Data class
- The Data class has a load() method which fills the same role as the constructor of RuntimeData
- The static Lang class is now an instantiable class and is a member of Data
- All tests have been adjusted and pass
- The Exception tests no longer require convoluted workarounds: a simple mock for Data::$l suffices; Lang tests also use a mock to prevent loops now instead of using a workaround
7 years ago
Dustin Wilson
7236020b8b
Changed "NewsSync" to "Arsse"
7 years ago
J. King
b821d728e4
Add rest dependency; fix SQLite function def
7 years ago
J. King
6413d3a489
Re-order SQLite3 driver initialization
Should handle error reporting better
7 years ago
Dustin Wilson
bb8af5a62c
Added Custom Functions into Db/SQLite3/Driver
• Created Db/SQLite3/CustomFunctions to house the dateFormat custom
function and potentially others in the future.
• Fixed a typo in Db/SQLite3/Driver
7 years ago
J. King
18c8076a0f
Database update tests
7 years ago
J. King
bdf3182305
Add result->lastId method; cleanup
- Result->lastId() added as MySQL and PostgreSQL have equivalent functionality
- Adjusted tests accordingly
- Cleaned up Database class to make use of this and getAll()
7 years ago
J. King
7c1df71acd
Make db throw specific exceptions
Needs testing and fleshing out; not all exception codes and messages have been defined
7 years ago
J. King
fa247b34f6
Reduce the number of database exception types
7 years ago
J. King
7687109132
Reorganize Db namespace; alter User ns to match
7 years ago
J. King
1dab15c20e
Fix SQLite3 driver name
7 years ago
J. King
eeb1818bb5
Still more database changes
- Restructured tests
- Localized driver name for SQLite driver (fixes #37 )
- Ensured that binding type definitions are required
7 years ago
J. King
007e3747ef
Various database fixes
Authentication appears to be broken with a real database
7 years ago
J. King
1529fc367a
Partial proper tests for parameter bindings
Null and (>0) integer tested so far
Many related changes to accomodate the necessary type juggling (required for databases other than SQLite).
7 years ago
J. King
337b2cf90c
Remove last vestiges of PDO accomodation
7 years ago
J. King
b4d178c33f
Remove most PDO stuff
PDO will not be supported: the feature-set is less than any of the common native APIs, so why bother?
7 years ago
Dustin Wilson
c5fac33398
Converted all hard tabs to soft tabs
7 years ago
J. King
c213b5928d
move code out of vendor tree into lib
7 years ago
J. King
8f77cbba1e
Tweaks
8 years ago
J. King
646b44c9cf
Functioning (but still incomplete) user management
8 years ago
J. King
793a5e2c1b
Finally a working start with the database
8 years ago
J. King
1df238a25c
Better database update routine
8 years ago
J. King
b2b71c4557
Start of higher-level database interface
8 years ago
J. King
6ffe942f99
SQLite3 database driver in working condition
PDO stub for now; other drivers to come
8 years ago
J. King
03b86c222f
Start on SQLite database driver
8 years ago