development_postgress #11

Merged
lee merged 11 commits from development_postgress into main 2025-07-31 13:32:49 +00:00

11 Commits

Author SHA1 Message Date
Lee Smet
1074e1ba19
...
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-07-31 14:55:30 +02:00
Lee Smet
91b029befa
Remove leftover debug statements
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-07-31 14:15:02 +02:00
Lee Smet
02a6a1c8d8
Add indexes for models in postgres
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-07-31 14:12:45 +02:00
Lee Smet
87a5ae67c7
Add indexed_fields method on Model
For postgres indexes we want to know the indexed field names upfront
without an actual instance of Model

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-07-31 13:21:12 +02:00
Lee Smet
74a1215554
Proper jsonb field encoding
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-07-31 12:15:52 +02:00
Lee Smet
0a8c5d1c1f
Expand Index struct to also get the original field name
This is needed in postgres, since we store data as jsonb so struct
fields can't get renamed

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-07-31 12:12:06 +02:00
Lee Smet
de8ca02048
Improve postgres example code style
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-07-31 11:21:33 +02:00
Lee Smet
55af1e97d2
Use proper JSON result type when getting row values
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-07-31 11:17:53 +02:00
Lee Smet
8544e3ba3f
Don't manually encode jsonb values
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-07-31 10:59:14 +02:00
Lee Smet
3d66a82967
Use BIGSERIAL for postgres keys
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-07-31 10:58:38 +02:00
Lee Smet
0a8e2040ef
Add postgres code
- Set is currently working
- Other methods to test

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
2025-07-30 16:31:40 +02:00