An open API service indexing awesome lists of open source software.

https://github.com/kamiazya/sql-collection-prototype

[WIP]Supports query execution by writing SQL templates in markdown.
https://github.com/kamiazya/sql-collection-prototype

markdown mysql prototype sql

Last synced: 3 months ago
JSON representation

[WIP]Supports query execution by writing SQL templates in markdown.

Awesome Lists containing this project

README

          

# sql-collection-prototype

Supports query execution by writing SQL templates in markdown.

## Input Data

See [GetUserById.md](examples/GetUserById.md).

- Use the sql code block whose meta key is specified as `template` as a SQL template.
- The format of input data can be specified by describing in the JSON Schema notation in the yaml code block whose meta key is specified as `input-schema`.

## Example

1. Run script by `yarn cli cui examples/GetUserById.md`.
![cli](./media/cli.png)
2. Press Enter.
3. The result is output.
![result1](./media/result1.png)
4. If you set the id to 2 and press Enter, The result changes immediately.
![result2](./media/result2.png)

## License

This software is released under the MIT License, see [LICENSE](./LICENSE).