Lurry is a library with support for custom SQL, which allows using Groovy templates - GString. It enables to use groovy constructions in SQL queries.
Lurry can use following formats for saving queries: yaml, xml and json.
files, http and smb can be used for data storage. In the future the list of formats and resources can be expanded.
- A simple and convenient way to use SQL with object-oriented applications
- Reducing the number of requests
TODO
import package.Person
import package.Contact
import package.ContactType
return(person_id) = new Person(#person_id, #person_name, contacts(), #income - #expense)
contacts(person_id, contact_id) {
new Contact(#contact_id, ContactType.of(#contact_type), #contact_value)
}
This project is licensed under [Apache License, version 2.0](https://www.apache.org/licenses/LICENSE-2.0)
Pull requests are welcome.