J. King
9304f99032
Make result sets single-use; change savewepoint exceptions
- Result sets are now single-use; this is required for PDO drivers (PDO result sets are not rewindable)
- Change savepoint exceptions to be simple database exceptions; codes remain the same
7 years ago
J. King
c393dfc42b
Sundry fixes
- Make use of PHP 7's null coalescing operator
- remove use of static property in Lang class
- Improve code coverage slightly
7 years ago
J. King
f7e50fe95d
Passed code through linter
7 years ago
J. King
9c7f4710aa
Fix feed fetching
There are almost certainly other bugs; proper tests forthcoming
7 years ago
J. King
458eaac5c6
Tests for listing folders
- Fixed checking for existence of parent before listing
- Changed Result->getAll() to return an empty array rather than null for an empty result set
7 years ago
Dustin Wilson
7236020b8b
Changed "NewsSync" to "Arsse"
7 years ago
J. King
485400df2b
Rename Result->get() to Result->getRow
It should be slightly clearer what it does
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
7687109132
Reorganize Db namespace; alter User ns to match
7 years ago
J. King
37dad63dee
Impelemented Result->getAll()
- Fixes #45
- Renamed getSingle to getValue to avoid possible confusion
- Added test to ensure getValue() always returns the first datum of each row rather than going column-to-column
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
176247894d
Tests for Db\ResultSQLite3
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
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