Demo project
This tutorial show how to quickly create a playground for the database used on the MySQL Tutorial site.
- Start the mysql classicmodels database as a docker service:
The image contains the sample database from the mysqltutorial.
Or if you want to create an empty mysql database, run:
- Download the configured repository using degit:
- Go to project folder and install the dependencies:
- Run TypeSQL on watch mode:
- Write the queries in the
./src/sqls
folder:
- Write the code using the generated functions:
- Execute the queries:
Result:
(index) | productCode | productName |
---|---|---|
0 | ‘S24_2011’ | ‘18th century schooner’ |
1 | ‘S18_3136’ | ‘18th Century Vintage Horse Carriage’ |
2 | ‘S24_2841’ | ‘1900s Vintage Bi-Plane’ |
3 | ‘S24_4278’ | ‘1900s Vintage Tri-Plane’ |
4 | ‘S18_3140’ | ‘1903 Ford Model A’ |