views.sql/README.md

27 lines
899 B
Markdown
Raw Normal View History

2016-05-31 10:54:47 -04:00
# views.sql
2016-05-22 15:26:20 -04:00
SQL plugin for the [views][1] library. Allows for plain SQL strings to
be used.
[1]: https://github.com/gered/views
2016-05-31 10:54:47 -04:00
Implementation is largely based on the [views.honeysql][2] library. As
such, the hints generated by either of these libraries are compatible
with each other. So you can opt to include honeysql and sql views in the
2016-05-22 15:38:36 -04:00
same view system if you wish and vexec! calls will trigger updates as
you would expect across all of these views.
2016-05-22 15:26:20 -04:00
2016-05-31 10:54:47 -04:00
Note that this library leverages [JSqlParser][3] for parsing SQL
2016-05-22 15:26:20 -04:00
queries and extracting the view system hint information needed.
JSqlParser is not perfect and will not be able to parse some more
complex queries and/or queries using some vendor-specific extensions.
2016-05-31 10:54:47 -04:00
[2]: https://github.com/gered/views.honeysql
[3]: https://github.com/JSQLParser/JSqlParser
2016-05-22 15:26:20 -04:00
## License
Copyright © 2016 Gered King
Distributed under the MIT License.