GithubHelp home page GithubHelp logo

play-slick's Introduction

About

This plugin makes Slick a first-class citizen of Play 2.x.

The play-slick plugins consists of 3 features:

  • A wrapper DB object that uses the datasources defined in the Play config files, and pulls them from a connection pool. It is there so it is possible to use Slick sessions in the same fashion as you would Anorm JDBC connections. There are some smart caching and load balancing that makes your connections to your DB more performant.
  • A DDL plugin, that reads Slick tables and automatically creates schema updates on reload. This is useful in particular for demos and to get started.
  • In addition it contains a wrapper to use play enumeratees together with Slick (thanks to Marc)

Build Status

Setup

Add a library dependency on play-slick:

"com.typesafe.play" %% "play-slick" % "{version}"

See below for the version matrix.

Configure the database in your application.conf. For example:

db.default.driver=org.h2.Driver
db.default.url="jdbc:h2:mem:play"
db.default.user=sa
db.default.password=""

For more information about creating models see the Slick documentation.

Usage

Please read more about usage on the wiki

Versioning

The Play Slick plugin supports several different versions of Play and Slick.

Plugin version Play version Slick version Scala version
0.4.x 2.1.x 1.0.x 2.10.x
0.5.x 2.2.x 1.0.x 2.10.x
0.6.x 2.2.x 2.0.x 2.10.x
0.7.x 2.3.x 2.0.x 2.10.x
0.8.x 2.3.x 2.1.x 2.10.x/2.11.x

The plugin has its own release cycle and therefore is not integrated into either core Play or Slick.

Current Versions

For Play 2.2 and Slick 2.0 (with Scala 2.10):

"com.typesafe.play" %% "play-slick" % "0.6.1"

For Play 2.3 and Slick 2.0 (with Scala 2.10):

"com.typesafe.play" %% "play-slick" % "0.7.0"

For Play 2.3 and Slick 2.1 release candidate (with Scala 2.10 or 2.11):

"com.typesafe.play" %% "play-slick" % "0.8.0"

Copyright

Copyright: Typesafe 2013-2014 License: Apache License 2.0, http://www.apache.org/licenses/LICENSE-2.0.html

play-slick's People

Contributors

freekh avatar loicdescotte avatar ms-tg avatar pvlugter avatar richdougherty avatar safespeed avatar prakhunov avatar nremond avatar cvogt avatar v6ak avatar bancek avatar guersam avatar shreyharia avatar zszugyi avatar tototoshi avatar oleastre avatar nmartynenko avatar gmethvin avatar gbougeard avatar stefanasseg avatar ryantanner avatar jadlr avatar diwalak avatar moatra avatar odwrotnie avatar occ avatar ndeverge avatar solatis avatar lmm avatar damiya avatar

Watchers

fpvsim avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.