Mike Colagrosso
0e7bff5d82
Rewrite MultiTableSelect
queries with ON
...
Instead of `USING(EbookId)`, it would be easier to handle
`MultiTableSelect` queries in `FromMultiTableRow()` if the queries used
`ON Projects.EbookId = Ebooks.Ebooks`
This is because `USING` will return only one `EbookId` column, but `ON`
will return all columns from both tables.
2025-01-02 09:57:45 -06:00
Alex Cabal
09a91a998e
Update framework standards
2024-09-12 21:45:28 -05:00
Alex Cabal
06e11c0b45
Update DbConnection to fix error in MultiTableSelect()
2024-05-28 12:40:53 -05:00
Alex Cabal
a2b18bd166
Update DbConnection to return objects in multi select queries
2024-05-26 13:17:05 -05:00
Alex Cabal
794e175d47
Add Date type to DbConnection
2024-05-20 20:29:27 -05:00
Alex Cabal
4cd7a1b72c
Tweak some PHPDocs
2024-05-18 20:41:15 -05:00
Alex Cabal
a9eab552ab
Flesh out some PHPDocs, and consistently name enums
2024-05-14 15:40:56 -05:00
Alex Cabal
ace9cea6b7
Throw exception when last insert ID can't be determined
2024-05-13 21:46:29 -05:00
Alex Cabal
52e177b886
Add new methods to DbConnection class
2024-05-13 15:13:02 -05:00
Alex Cabal
70ae877dd8
Bump PHPStan check level to max and add final round of type hints
2024-05-13 10:48:05 -05:00
Alex Cabal
c4c8e7353f
Enable strict exception type hint checking in PHPStan and add exception type hints
2024-05-10 20:47:36 -05:00
Alex Cabal
10bea9ad9e
Add newdecimal type to DbConnection
2024-05-02 16:25:24 -05:00
Alex Cabal
2e137d2df7
Better exception message when database encounters a duplicate unique key
2024-05-02 11:01:34 -05:00
Alex Cabal
de76531589
Better type check in DbConnection
2024-05-01 23:41:42 -05:00
Alex Cabal
82fe64c368
Don't check for boolean columsn in DbConnetion
2024-05-01 09:38:33 -05:00
Alex Cabal
97cafbf128
Allow for an object's own FromRow method in DbConnection
2024-05-01 09:38:33 -05:00
Alex Cabal
aa8bdfed0e
Remove unnecessary test from DbConnection
2024-04-29 14:37:47 -05:00
Alex Cabal
6a3a5d5ec3
Add type hints to DB connection class
2024-04-29 12:05:43 -05:00
Alex Cabal
49f5bc7641
Use new duplicate key exception instead of checking PDOException
2024-04-29 12:01:24 -05:00
Alex Cabal
5ee7e8e2ad
Fix incorrect exception check in DB connection code
2024-04-29 11:39:41 -05:00
Alex Cabal
233f8eb171
More DB connection cleanup
2024-04-28 20:53:05 -05:00
Alex Cabal
e14988ff8c
Improve exceptions in DB classes
2024-04-27 14:42:37 -05:00
Alex Cabal
fdca261133
Remove unnecessary try/catch from DB connection
2024-04-27 12:37:09 -05:00
Alex Cabal
07110829e7
Specify explicit duplicate key exception in DB class
2024-04-26 13:58:05 -05:00
Alex Cabal
265db89448
Fix typo in DB constructor
2024-04-26 13:17:18 -05:00
Alex Cabal
5b3f8f7b77
Add support for filling backed enum types in the DB ORM layer, and cleanup some formatting issues
2024-04-25 11:57:02 -05:00
Alex Cabal
e55fecaaa2
Switch from DateTime to DateTimeImmutable across codebase
2024-04-13 14:05:14 -05:00
Alex Cabal
2fc92b8768
Use instanceof instead of is_a() to check some classes
2024-01-16 13:32:58 -06:00
Alex Cabal
e712cfbfcc
Support backed enums as a parameter type in the database
2024-01-15 00:07:57 -06:00
Alex Cabal
783c09864f
Add type hints for remaining classes
2024-01-08 16:08:57 -06:00
Mike Colagrosso
6a5c05511a
Add cover art database
...
Co-authored-by: Job Curtis <job.curtis@gmail.com>
Co-authored-by: Alex Cabal <alex@standardebooks.org>
2024-01-03 19:14:04 -06:00
Alex Cabal
04714b25ef
Minor code cleanup
2023-07-12 11:01:52 -05:00
Alex Cabal
1c055d3e6f
Disable emulate prepares in DB
2023-05-13 23:42:58 -05:00
Alex Cabal
f66f6e3287
Improved error printing in dev site
2022-07-06 16:47:24 -05:00
Alex Cabal
011cd747f1
Convert newsletter to use Users table as base
2022-07-04 12:09:49 -05:00
Alex Cabal
6c8414f844
Update PropertiesBase to new patterns and improve static analysis checks
2022-06-30 13:23:05 -05:00
Alex Cabal
70a80d0e02
Add system to retrieve and manage donations in a local database
2022-06-20 14:05:27 -05:00
Alex Cabal
934545c191
Replace Logger static class with Log class
2022-06-17 20:40:51 -05:00
Alex Cabal
b0197d189a
Add newsletter management functionality
2022-03-20 17:46:47 -05:00
Alex Cabal
58c0d301dd
Add auto-detected types from DB in ORM
2022-02-22 10:49:54 -06:00
Alex Cabal
9f3104025d
Add type hints and quiet a few other PHPStan complaints
2022-02-09 12:56:09 -06:00
Alex Cabal
9d923605d8
Add database and ORM scaffolding
2021-12-09 13:13:16 -06:00