squeryl-dao

This is a squeryl dao and some helpful db utilities.

License

License

GroupId

GroupId

com.github.enalmada
ArtifactId

ArtifactId

squeryl-dao_2.12
Last Version

Last Version

0.3.0
Release Date

Release Date

Type

Type

jar
Description

Description

squeryl-dao
This is a squeryl dao and some helpful db utilities.
Project URL

Project URL

https://github.com/Enalmada/squeryl-dao
Project Organization

Project Organization

com.github.enalmada
Source Code Management

Source Code Management

https://github.com/Enalmada/squeryl-dao

Download squeryl-dao_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.enalmada/squeryl-dao_2.12/ -->
<dependency>
    <groupId>com.github.enalmada</groupId>
    <artifactId>squeryl-dao_2.12</artifactId>
    <version>0.3.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.enalmada/squeryl-dao_2.12/
implementation 'com.github.enalmada:squeryl-dao_2.12:0.3.0'
// https://jarcasting.com/artifacts/com.github.enalmada/squeryl-dao_2.12/
implementation ("com.github.enalmada:squeryl-dao_2.12:0.3.0")
'com.github.enalmada:squeryl-dao_2.12:jar:0.3.0'
<dependency org="com.github.enalmada" name="squeryl-dao_2.12" rev="0.3.0">
  <artifact name="squeryl-dao_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.enalmada', module='squeryl-dao_2.12', version='0.3.0')
)
libraryDependencies += "com.github.enalmada" % "squeryl-dao_2.12" % "0.3.0"
[com.github.enalmada/squeryl-dao_2.12 "0.3.0"]

Dependencies

compile (8)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.8
com.typesafe.play : twirl-api_2.12 jar 1.5.0
com.typesafe.play : play-server_2.12 jar 2.8.0
com.typesafe.play : play-logback_2.12 jar 2.8.0
com.typesafe.play : play-akka-http-server_2.12 jar 2.8.0
com.typesafe.play : filters-helpers_2.12 jar 2.8.0
com.typesafe.play : play-cache_2.12 jar 2.8.0
org.squeryl : squeryl_2.12 jar 0.9.14

test (1)

Group / Artifact Type Version
com.typesafe.play : play-test_2.12 jar 2.8.0

Project Modules

There are no modules declared in this project.

squeryl-dao Build Status Join the chat at https://gitter.im/Enalmada/squeryl-dao

Squeryl is an amazing scala ORM. This module attempts to make starting with squeryl more convenient so you can focus on your business logic.

Version information

I believe squeryl-dao needs Play! Framework 2.8.x or later

squeryl-dao is built and tested with Scala 2.12.8 (from 0.2.0) squeryl-dao is built and tested with Scala 2.11.7 (from 0.1.0)

Releases are on mvnrepository and snapshots can be found on sonatype.

Quickstart

Clone the project and go to samples. Create a sample database "createdb -U postgres squeryl-dao". Edit your application.conf with your db settings and run activator run to see a sample application.

Including the Dependencies

<dependency>
    <groupId>com.github.enalmada</groupId>
    <artifactId>squeryl-dao_2.21</artifactId>
    <version>0.2.0</version>
</dependency>

or

val appDependencies = Seq(
  "com.github.enalmada" %% "squeryl-dao" % "0.2.0"
)

Dao Features

  • Sample model class "User" extending the dao
  • crud controller for model including auditing and optimistic locking
  • views showing pagination, basic sorting

Extras

  • bootstrap abstraction with play-bootstrap3
  • bootstrap theme with bootswatch
  • DRY (dont repeat yourself) flash message handling function and create/edit forms core
  • If you need auth, I highly recommend starting with play2-auth.

Versions

  • 0.2.0 [release on 2020-01-19]
    • update for new logging
  • 0.1.0 [release on 2015-12-07]
    • Initial release.

License

Copyright (c) 2015 Adam Lane

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Versions

Version
0.3.0
0.2.0