diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..b517a46 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,59 @@ +## 0.18.0 [Unreleased] +* Change to semver +* Move CI to gitlab + +## Previous versions + +`0.17` Compatible with Kotlin 1.1.3-2. +* Fix #14 - Incorrect parameter positions for collections +* Lazily set `Statement.poolable` + +`0.16` Compatible with Kotlin 1.1.0. + +`0.15` Compatible with Kotlin 1.0.4. +* Mapper: Support ThreadLocalSessions in Dao by creating implicit transactions (thanks @brianmadden) + +`0.14` Compatible with Kotlin 1.0.4. + +`0.13` Compatible with Kotlin 1.0.3. + +`0.12` Compatible with Kotlin 1.0.2. +* Core: QueryBuilder +* Core: Fix collection binding when not first parameter +* Mapper: Add Dao.findByIdForUpdate + +`0.11` Compatible with Kotlin 1.0.2. +* Core: Fix logging of statements with bound values containing `$` +* Core: Add experimental sqlite support +* Mapper: Support generated keys for MySQL in DAOs + +`0.10` Compatible with Kotlin 1.0.2. + +`0.9` Compatible with Kotlin 1.0.0. +* Mapper: add `Table.optionalCol` to construct optional types via paths + +`0.8` Compatible with Kotlin 1.0.0-rc-1036. +* Mapper: support PreUpdate and PreInsert events (thanks @davemaple) +* Remove tomcat pool module as Postgres drivers now support prepared statement caching + +`0.7` Compatible with Kotlin 1.0.0-beta-3595. +* Add MySQL dialect + +`0.6` Compatible with Kotlin 1.0.0-beta-1038. + +`0.5` Compatible with Kotlin M14. + +`0.4` Compatible with Kotlin M13: +* Provide a consistent set of defaults and converters for mapping standard types +* Add defaults and converters for OffsetDateTime and ZonedDateTime + +`0.3` Compatible with Kotlin M13: +* Improved docs +* Simplified transaction listeners +* Made transactions re-entrant +* Renamed ThreadLocalSession to ManagedThreadLocalSession and introduced a new ThreadLocalSession for + use without interceptors and annotations. + +`0.2` Compatible with Kotlin M12, adding transactional interceptors. + +`0.1` Compatible with Kotlin M11. \ No newline at end of file diff --git a/README.md b/README.md index f8a2d00..81073c5 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ -#### Kwery Overview +# Kwery [![Build Status](https://travis-ci.org/andrewoma/kwery.svg?branch=master)](https://travis-ci.org/andrewoma/kwery) -Kwery is an SQL library for Kotlin. - -Kwery consists of three major modules (core, mapper and fetcher) that when combined provide similar -functionality to a traditional ORM. +Kwery is an SQL library for Kotlin. It consists of three major modules core, mapper, and fetcher which when combined provide similar +functionality to a traditional ORM. Kwery's manifesto: * **Your domain model is sacred.** No annotations or modifications to your model are required. Immutable models are fully supported. @@ -11,7 +9,15 @@ Kwery's manifesto: * **No magic.** No proxies, interceptors, reflection or implicit saves. Explicit functions with sensible defaults control everything. * **Useful logging.** Logged statements are valid SQL with inline parameters for your dialect. -[![Build Status](https://travis-ci.org/andrewoma/kwery.svg?branch=master)](https://travis-ci.org/andrewoma/kwery) + +_Note: This fork was made due to inactivity of [andrewoma/kwery](https://github.com/andrewoma/kwery). +Credits to the original author for his work._ + +## Installation +Kwery is available in [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Candrewoma.kwery) +and [jcenter](https://bintray.com/bintray/jcenter/com.github.andrewoma.kwery%3Acore). + +## Modules #### Core @@ -161,62 +167,6 @@ See the [readme](transactional-jersey) for more information. Kwery is unstable. It's currently being developed for a side project, so features are added as required. -Kwery is available in [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Candrewoma.kwery) - -`0.17` Compatible with Kotlin 1.1.3-2. -* Fix #14 - Incorrect parameter positions for collections -* Lazily set `Statement.poolable` - -`0.16` Compatible with Kotlin 1.1.0. - -`0.15` Compatible with Kotlin 1.0.4. -* Mapper: Support ThreadLocalSessions in Dao by creating implicit transactions (thanks @brianmadden) - -`0.14` Compatible with Kotlin 1.0.4. - -`0.13` Compatible with Kotlin 1.0.3. - -`0.12` Compatible with Kotlin 1.0.2. -* Core: QueryBuilder -* Core: Fix collection binding when not first parameter -* Mapper: Add Dao.findByIdForUpdate - -`0.11` Compatible with Kotlin 1.0.2. -* Core: Fix logging of statements with bound values containing `$` -* Core: Add experimental sqlite support -* Mapper: Support generated keys for MySQL in DAOs - -`0.10` Compatible with Kotlin 1.0.2. - -`0.9` Compatible with Kotlin 1.0.0. -* Mapper: add `Table.optionalCol` to construct optional types via paths - -`0.8` Compatible with Kotlin 1.0.0-rc-1036. -* Mapper: support PreUpdate and PreInsert events (thanks @davemaple) -* Remove tomcat pool module as Postgres drivers now support prepared statement caching - -`0.7` Compatible with Kotlin 1.0.0-beta-3595. -* Add MySQL dialect - -`0.6` Compatible with Kotlin 1.0.0-beta-1038. - -`0.5` Compatible with Kotlin M14. - -`0.4` Compatible with Kotlin M13: -* Provide a consistent set of defaults and converters for mapping standard types -* Add defaults and converters for OffsetDateTime and ZonedDateTime - -`0.3` Compatible with Kotlin M13: -* Improved docs -* Simplified transaction listeners -* Made transactions re-entrant -* Renamed ThreadLocalSession to ManagedThreadLocalSession and introduced a new ThreadLocalSession for - use without interceptors and annotations. - -`0.2` Compatible with Kotlin M12, adding transactional interceptors. - -`0.1` Compatible with Kotlin M11. - #### Building ```bash @@ -262,8 +212,5 @@ Robustness/Performance: * Soak test - check for leaking connections/resources over extended usage * Profile array based in clauses on large tables -Misc: -* Better IDE support for highlighting inline SQL. Vote for [KT-6610](https://youtrack.jetbrains.com/issue/KT-6610) - #### License This project is licensed under a MIT license.