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.
- Host: GitHub
- URL: https://github.com/kamiazya/sql-collection-prototype
- Owner: kamiazya
- License: mit
- Created: 2020-01-21T09:20:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T14:05:41.000Z (over 3 years ago)
- Last Synced: 2025-02-14T10:56:29.965Z (over 1 year ago)
- Topics: markdown, mysql, prototype, sql
- Language: TypeScript
- Homepage:
- Size: 787 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.

2. Press Enter.
3. The result is output.

4. If you set the id to 2 and press Enter, The result changes immediately.

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