Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```