Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d6y/slick-upsert
Exampes of Upsert in Slick 3
https://github.com/d6y/slick-upsert
Last synced: about 1 month ago
JSON representation
Exampes of Upsert in Slick 3
- Host: GitHub
- URL: https://github.com/d6y/slick-upsert
- Owner: d6y
- License: apache-2.0
- Created: 2015-07-14T13:42:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-18T15:55:06.000Z (over 9 years ago)
- Last Synced: 2023-03-10T19:08:48.850Z (almost 2 years ago)
- Language: Scala
- Size: 129 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slick Upsert
This project contains an example of upserts using Slick 3.
# Running the code
There are three main methods supplied:
- `PkExample` - which is `insertOrUpdate` when you have an `O.PrimaryKey`
- `CompositePkExample` - an example with a composite primary key via `def pk = primaryKey...`
- `ManualExample` - when you want to do your own thing.Run the one you want. E.g.,
```
$ sbt
sbt> runMain PkExample
```