Proper way to use multi-tenancy
Open
- Dominant language
- Kotlin
- Stars
- 9.3k
- Forks
- 798
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 26
Description
I have many PostgreSQL schemas with the same tables.
And I want to use the TenantIdentifierResolver alternative from Spring for Exposed.
```
get("/{schema}/book") {
val books = transaction {
SchemaUtils.setSchema(Schema(call.parameters["schema"]!!))
BookEntity.all().map { it.toModel() }
}
call.respond(books)
}
```
Contributor guide
Assessment
This issue has not been assessed yet.