Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucidsoftware/relate
Performant database access in Scala
https://github.com/lucidsoftware/relate
Last synced: 2 months ago
JSON representation
Performant database access in Scala
- Host: GitHub
- URL: https://github.com/lucidsoftware/relate
- Owner: lucidsoftware
- License: apache-2.0
- Created: 2014-05-19T19:18:32.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-01T07:50:34.000Z (about 1 year ago)
- Last Synced: 2024-08-01T17:28:21.807Z (5 months ago)
- Language: Scala
- Homepage: http://lucidsoftware.github.io/relate/
- Size: 1020 KB
- Stars: 161
- Watchers: 44
- Forks: 16
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-scala - Relate ★ 110 ⧗ 7 - Lightweight, blazing-fast database access layer for Scala that abstracts the idiosyncricies of the JDBC while keeping complete control over the SQL. (Database)
- awesome-scala - relate - activity/y/lucidsoftware/relate) (Table of Contents / Database)
README
# Relate
http://lucidsoftware.github.io/relate/[![Build Status](https://travis-ci.com/lucidsoftware/relate.svg)](https://travis-ci.com/lucidsoftware/relate)
[![Maven Version](https://img.shields.io/maven-central/v/com.lucidchart/relate_2.13.svg)](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.lucidchart%22%20AND%20a%3A%22relate_2.13%22)
[![Join the chat at https://gitter.im/lucidsoftware/relate](https://badges.gitter.im/lucidsoftware/relate.svg)](https://gitter.im/lucidsoftware/relate?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)Relate is a lightweight, blazingly fast database access layer for Scala that abstracts the idiosyncricies of the JDBC while keeping complete control over the SQL.
## Install
```scala
libraryDependencies += "com.lucidchart" %% "relate" % ""
```## Examples
```scala
val ids = Seq(1, 2, 3)
sql"SELECT email FROM users WHERE id in ($ids)".asMap { row =>
row.long("id") -> row.string("email")
}
``````scala
val id = 4
val email = "[email protected]"
sql"INSERT INTO users VALUES ($id, $email)".execute()
```[Continue to Documentation](http://lucidsoftware.github.io/relate/)