SQL plugin for the views library. Allows for plain ol' SQL strings to be used.
Go to file
2016-05-31 18:30:36 -04:00
src/views/sql add tests 2016-05-31 18:20:09 -04:00
test/views/sql test cleanups 2016-05-31 18:30:36 -04:00
.gitignore initial commit 2016-05-22 15:26:20 -04:00
LICENSE initial commit 2016-05-22 15:26:20 -04:00
project.clj add tests 2016-05-31 18:20:09 -04:00
README.md slight project rename 2016-05-31 10:54:47 -04:00

views.sql

SQL plugin for the views library. Allows for plain SQL strings to be used.

Implementation is largely based on the views.honeysql 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 same view system if you wish and vexec! calls will trigger updates as you would expect across all of these views.

Note that this library leverages JSqlParser for parsing SQL 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.

License

Copyright © 2016 Gered King

Distributed under the MIT License.