Commit Graph

20 Commits

Author SHA1 Message Date
djalim 3f0312d732 chore(deps): update drizzle-orm to 0.45.2 and pg to 8.20.0 2026-04-22 14:23:34 +02:00
djalim 9636242b42 refactor(mobility): switch to Drizzle ORM and remove raw SQLite usage
- replace Database with db instance
- use schema imports for tables
- use db.select, db.insert, onConflictDoUpdate
- remove manual connection handling and console logs
- improve type safety and maintainability

refactor(students): migrate to Drizzle ORM and async queries

Replace raw sqlite queries with Drizzle ORM. Remove the connect helper and use the
shared db instance and schema definitions. Convert getItself, getAll and
addStudents to async functions, use eq and lt helpers, and simplify promotion
handling. This improves type safety, maintainability, and allows non‑blocking
database access.
2026-04-03 10:43:29 +02:00
Kevin FEDYNA 6d4d36e089 Fixed linting and formatting errors 2025-01-25 10:48:04 +01:00
Clayzxr 16b7579e10 Trying to make EditStudents works 2025-01-24 21:38:53 +01:00
Clayzxr fcc0a4413c Update student to have an ID 2025-01-24 20:48:33 +01:00
Clayzxr f07b4dc616 Consult mobility working 2025-01-24 17:09:51 +01:00
Clayzxr 575f0df4bc Fixing bugs 2025-01-24 16:23:47 +01:00
Clayzxr a867f67fd9 Trying to fix DB mobility 2025-01-24 16:17:51 +01:00
Clayzxr cc26ec9445 Trying to make mobility works 2025-01-22 22:45:34 +01:00
Clayzxr 4abf540558 Init mobility DB 2025-01-22 15:09:22 +01:00
Clayzxr 36c5c9cf39 Test to access student DB in other apps (working) 2025-01-22 11:35:47 +01:00
Clayzxr b5fedbb425 Moved all student management tools into student app for global uses (working) 2025-01-21 17:29:59 +01:00
Clayzxr c04505e95d Working DB with table promotions 2025-01-21 16:46:19 +01:00
Clayzxr 661b59645b Minor fix 2025-01-21 16:32:00 +01:00
Clayzxr db6669901b Adding table promotion (consult not working yet) 2025-01-21 16:31:08 +01:00
Kevin FEDYNA 6b8966c5ca Linted and formatted 2025-01-21 16:13:50 +01:00
Clayzxr e049056295 Working DB for students insertion 2025-01-21 15:45:38 +01:00
Clayzxr 0672666bd3 CDN working with Docker 2025-01-21 15:17:47 +01:00
Clayzxr 07148f16b2 pushed changes 2025-01-20 17:33:07 +01:00
Clayzxr a49683c10e Use api for DB 2025-01-20 16:33:06 +01:00