Gered
9f2bfc1820
just a single cache for all view systems that might be in use. i don't think this should really be a problem |
||
---|---|---|
src/views/sql | ||
.gitignore | ||
LICENSE | ||
project.clj | ||
README.md |
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.