dkirchhof / rescript-sql-typegen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⛔️ DEPRECATED use https://github.com/dkirchhof/rescript-sql instead

Still very experimental. So the codegen and api could be changed completely.

The idea behind this library:

  1. Define the basic schema in example/_DB.res.
  2. Run codegen to create rescript types. The result will be written to example/DB.res. Try the generator without overwriting the file by running codegen-dry.
  3. Write queries to create the tables, get some data or manipulate it. Several example queries can be found in example/Examples.res.

docker run --name rescript-sql-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=rescript mysql:8

About


Languages

Language:ReScript 100.0%