Skip to content

dkirchhof/rescript-sql-typegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⛔️ 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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published