8000 GitHub - ivyy/active-slick: Slick extensions for record lifecycle management · GitHub
[go: up one dir, main page]

Skip to content
< 8000 div hidden="hidden" data-view-component="true" class="js-stale-session-flash stale-session-flash flash flash-warn flash-full"> Dismiss alert

About

Slick extensions for record lifecycle management

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

105 Commits

Folders and files

Repository files navigation

ActiveSlick

Build Status

ActiveSlick is a library that offers CRUD operations for Slick 2.1 projects. The main goal is to provide some basic operations to manage the lifecycle of persisted objects (new/persisted/deleted/stale) and enable the implementation of the Active Record Pattern on Slick mapped case classes.

All operations are provided by TableQueries sub-classes.

Main features

  • Basic CRUD and auxiliary methods - add/update/save, delete, list, pagedList, (paged result), findById and count.
  • Model classes don't need to implement any specific class or trait, although for convenience you can extend Identifiable or Versionable traits.
  • Generic Id type.
  • Identifiable trait and respective EntityTable to manage Entities.
  • Versionable trait and respective VersionableEntityTable for optimistic locking.
  • ActiveRecord trait to enable the Active Record Pattern on mapped case classe via class extensions (pimp-my-library style)

Project artifact

The latest release (0.2.2) is available on Sonatype's repository. This is a crossbuild for Scala 2.10 and 2.11 and and Slick 2.1.

libraryDependencies += "io.strongtyped" % "active-slick_2.10" % "0.2.2"

or

libraryDependencies += "io.strongtyped" % "active-slick_2.11" % "0.2.2"

or

libraryDependencies += "io.strongtyped" %% "active-slick" % "0.2.2"

Usage

Usage information can be found on the wiki pages or via an Activator Template.

About

Slick extensions for record lifecycle management

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0