Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending Tables #66

Open
freddieerg opened this issue Sep 13, 2022 · 1 comment
Open

Extending Tables #66

freddieerg opened this issue Sep 13, 2022 · 1 comment

Comments

@freddieerg
Copy link

Issue type:

[-] Question
[ ] Bug report
[ ] Feature request
[ ] Documentation issue

Database system/driver:

[x] Postgres
[ ] MSSQL
[ ] MySQL
[ ] MariaDB
[ ] SQLite3
[ ] Oracle
[ ] Amazon Redshift

typed-knex version:

[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)

Is there a way to extend a class so that multiple tables can inherit columns from an abstract class?

@wwwouter
Copy link
Owner

Hi, typed-knex is using decorators and those aren't inherited.

I am looking at different ways of creating table classes, mainly to support types created by TypeBox (https://www.npmjs.com/package/@sinclair/typebox). But that is still very preliminary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants