Upgrade to Pro — share decks privately, control downloads, hide ads and more …

sqlcを利用してsqlに型付けを

kamiyam
October 02, 2024

 sqlcを利用してsqlに型付けを

kamiyam

October 02, 2024
Tweet

More Decks by kamiyam

Other Decks in Programming

Transcript

  1. Supported engines and drivers - PostgreSQL via pg or postgres.

    - MySQL via mysql2. - SQLite via sqlite3.
  2. Refs. Compile SQL to type-safe code; catch failures before they

    happen. https://sqlc.dev/ generate - Generating code https://docs.sqlc.dev/en/latest/howto/generate.html sqlc-gen-typescript https://github.com/sqlc-dev/sqlc-gen-typescript sqlc-gen-typescriptͰMySQLͰ΋insertޙͷID͕΄͍͠ https://qiita.com/Yuumillar/items/b1e3ec74eac725834735
  3. Refs. Announcing TypedSQL: Make your raw SQL queries type-safe with

    Prisma ORM https://www.prisma.io/blog/announcing-typedsql-make-your-raw-sql- queries-type-safe-with-prisma-orm