Commit Graph

10 Commits

Author SHA1 Message Date
djalim 41bc419a95 chore(deps): update drizzle-orm to 0.45.2 and pg to 8.20.0 2026-04-22 14:39:41 +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