Better HN
topnewbestaskshowjobs
Log inSign up

blipWER

3 karma · joined Sep 10, 2024 (2y ago) · 4 submissions

Submissions

comment 2y ago · link · parent

Library is driver agnostic. Jet cli code generator indeed uses mattn/go-sqlite3, but you can run your queries using any driver you prefer. You can also customize jet generator and use any other driver for code generation.

comment 2y ago · link · parent

SQLC is good for basic staff, which you should be able to achieve with any ORM. For anything more complicated it fails miserably.

comment 2y ago · link · parent

If you use jet generated models mapping(including joins) is implicitly type safe, since sql builder and models are generated from the same database schema. This doesn't apply for custom models, but custom models are rarely needed.