https://github.com/gekomad/skunk-recipes
Skunk exercises
https://github.com/gekomad/skunk-recipes
scala skunk sql
Last synced: over 1 year ago
JSON representation
Skunk exercises
- Host: GitHub
- URL: https://github.com/gekomad/skunk-recipes
- Owner: gekomad
- Created: 2020-02-01T18:35:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-11T14:23:34.000Z (over 2 years ago)
- Last Synced: 2025-01-22T21:17:52.285Z (over 1 year ago)
- Topics: scala, skunk, sql
- Language: Scala
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[here](https://github.com/gekomad/doobie-recipes) Doobie recipes
### Run test with docker
```
docker run -d --name skunk_recipies -p5436:5432 -e POSTGRES_USER=jimmy -e POSTGRES_DB=world -e POSTGRES_PASSWORD=banana tpolecat/skunk-world
sbt test
docker rm -f skunk_recipies
```
- Selecting
[Select count](https://github.com/gekomad/skunk-recipes/blob/master/src/test/scala/selecting/Count.scala)
[Join](https://github.com/gekomad/skunk-recipes/blob/master/src/test/scala/selecting/Join.scala)
[MappingRows](https://github.com/gekomad/skunk-recipes/blob/master/src/test/scala/selecting/MappingRows.scala)
[NestedClass](https://github.com/gekomad/skunk-recipes/blob/master/src/test/scala/selecting/NestedClass.scala)
[NestedClassMap](https://github.com/gekomad/skunk-recipes/blob/master/src/test/scala/selecting/NestedClassMap.scala)
[RowMappings](https://github.com/gekomad/skunk-recipes/blob/master/src/test/scala/selecting/RowMappings.scala)
[SelectMultipleColumns](https://github.com/gekomad/skunk-recipes/blob/master/src/test/scala/selecting/SelectMultipleColumns.scala)
[SelectOneColumn](https://github.com/gekomad/skunk-recipes/blob/master/src/test/scala/selecting/SelectOneColumn.scala)
- Parameterized queries
[Bigger than](https://github.com/gekomad/skunk-recipes/blob/master/src/test/scala/parameterizedQueries/BiggerThan.scala)
IN clauses
[Parameters](https://github.com/gekomad/skunk-recipes/blob/master/src/test/scala/parameterizedQueries/Parameters.scala)
- DDL
Batch
Insert and Read key
Insert and Read Person class
Insert Read and Update
SQLArrays
- Transactions
Transaction
- Enum
Enum
- CSV
Select with type
Itto CSV
Load CSV in table
Spool CSV
Spool paramterized CSV
- Logging
Logging
- Error handling
ErrorHandling