Giter VIP home page Giter VIP logo

play-slick's Introduction

About

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

The play-slick plugins consists of 2 parts:

  • DDL schema generation Plugin that works like the Ebean DDL Plugin. Based on config it generates create schema and drop schema SQL commands and writes them to evolutions.
  • A wrapper DB object that uses the datasources defined in the Play config files. It is there so it is possible to use Slick sessions in the same fashion as you would Anorm JDBC connections.

Setup

In the project/Build.scala file add::

.dependsOn(RootProject( uri("git://github.com/freekh/play-slick.git") ))

to your play.Project.

Example :

val main = play.Project(appName, appVersion, appDependencies).settings(
  // Add your own project settings here      
 ).dependsOn(RootProject( uri("git://github.com/freekh/play-slick.git") ))

Add slick.default="models.*" and:

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

to application.conf and create a model.

Note that only Play 2.2.x is supported by the 0.5.x series. The Play 2.1 was supported in the 0.4.x series.

Please read more about usage on the wiki

Copyright

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

play-slick's People

Contributors

loicdescotte avatar freekh avatar cvogt avatar bancek avatar gbougeard avatar tototoshi avatar zszugyi avatar cbrachem avatar solatis avatar ndeverge avatar occ avatar odwrotnie avatar diwalak avatar

Watchers

James Cloos 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.