JetBrains / JetBrains/Exposed

Proper way to use multi-tenancy

Open
#1,423 0 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.