From 45a1db6b639579f62ae598f96ab2b705efa957b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Marques?= Date: Thu, 26 Jan 2017 08:10:14 +0000 Subject: [PATCH] Release 1.2.6 --- README.md | 10 +++++++--- project/Build.scala | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 93f8402..5b0b291 100644 --- a/README.md +++ b/README.md @@ -5,14 +5,14 @@ |MySQL, Oracle, DB2, PostgreSQL, Derby, H2, Hsql|Travis CI|[![Build status](https://travis-ci.org/gonmarques/slick-repo.svg?branch=master)](https://travis-ci.org/gonmarques/slick-repo)| |SQLServer|AppVeyor|[![Build status](https://ci.appveyor.com/api/projects/status/3httes30fa1foes1/branch/master?svg=true)](https://ci.appveyor.com/project/gonmarques/slick-repo)| -[![Coverage Status](https://coveralls.io/repos/github/gonmarques/slick-repo/badge.svg?branch=master)](https://coveralls.io/github/gonmarques/slick-repo)   [![Latest Release](https://img.shields.io/badge/release-v1.2.5-007ec6.svg)](https://search.maven.org/#search%7Cga%7C1%7Cbyteslounge%20slick-repo)   [![MIT License](https://img.shields.io/badge/license-MIT-7c39ef.svg)](http://opensource.org/licenses/MIT) +[![Coverage Status](https://coveralls.io/repos/github/gonmarques/slick-repo/badge.svg?branch=master)](https://coveralls.io/github/gonmarques/slick-repo)   [![Latest Release](https://img.shields.io/badge/release-v1.2.6-007ec6.svg)](https://search.maven.org/#search%7Cga%7C1%7Cbyteslounge%20slick-repo)   [![MIT License](https://img.shields.io/badge/license-MIT-7c39ef.svg)](http://opensource.org/licenses/MIT) Slick Repositories is an aggregation of common database operations in ready-to-be-used generic and type-safe repositories, best known as DAOs. ## Main features - Provide common database operations like *save*, *update*, *find*, *delete* or *count* in a type-safe way - - Other operations like Transactions, Optimistic Locking (aka versioning), Pessimistic Locking or custom query/statement execution are also supported + - Other operations like Transactions, Batch Insert, Optimistic Locking (aka versioning), Pessimistic Locking or custom query/statement execution are also supported - In order to maximize performance, all provided operations are backed by Slick compiled queries, as recommended in [Slick Documentation](http://slick.lightbend.com/doc/3.1.1/queries.html) ## Latest Release @@ -20,7 +20,7 @@ Slick Repositories is an aggregation of common database operations in ready-to-b The library releases are available at [Maven Central](https://search.maven.org/#search%7Cga%7C1%7Cbyteslounge%20slick-repo) for Scala **2.10**, **2.11** and **2.12**. In order to add the library as a dependency to your project: ```scala -libraryDependencies += "com.byteslounge" %% "slick-repo" % "1.2.5" +libraryDependencies += "com.byteslounge" %% "slick-repo" % "1.2.6" ``` ## Introduction @@ -126,6 +126,10 @@ The repositories support the following common database operations: Deletes an entity + - `def batchInsert(entities: Seq[T]): DBIO[Option[Int]]` + + Performs a batch insert of an arbitrary sequence of entities + ## Custom queries It is possible to define custom queries or statements inside a repository. Even queries that access multiple tables: diff --git a/project/Build.scala b/project/Build.scala index 31cac53..374c48d 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -52,7 +52,7 @@ object Build extends Build { name := "slick-repo", description := "CRUD Repositories for Slick based persistence Scala projects", - version := "1.2.6-SNAPSHOT", + version := "1.2.6", scalaVersion := "2.11.8", crossScalaVersions := Seq("2.11.8", "2.12.1", "2.10.6"),