Skip to content

Custom Table Class Names #1577

Answered by simolus3
MuchoDart asked this question in Q&A
Dec 2, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

This is undocumented (because it's a rarely needed feature with a somewhat weird API), but you can define the name for both the table and the data class like this:

https://github.com/simolus3/moor/blob/44281bebaf1d030ffc978fff419767b210696991/drift/test/data/tables/tables.drift#L41-L44

In your case, you could use AS "Customer/CustomerTable" for instance.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MuchoDart
Comment options

Answer selected by MuchoDart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants