Comments (2)
"The decorator metadata feature is not meant to provide a full runtime type system, or a reflection-like feature." See
microsoft/TypeScript#9916
That's why you cannot use unions in your table definition classes.
Catching these errors and providing useful feedback has been challenging
Because you will never select
and object like site
, you can either define it just as public site: TableSites;
or if you want public site?: TableSites;
BTW: To be able to move this library closer to Knex itself, the innerJoinColumn
and objects in table definition classes will probably need to be removed.
from typed-knex.
Got it!
Thank you for your help and this amazing library with a lot of potential.
Keep up the good work!
from typed-knex.
Related Issues (20)
- Select all aliases bug HOT 2
- Left join throws error HOT 4
- Get ID after inserting row HOT 13
- Some property names are incomplete after a query
- .singleOrNull without .select does not show | null typing HOT 3
- MS Code Freezing with Typed Knex but fine without HOT 2
- Using andOn inside innerJoinTableOnFunction not translated column according to definition HOT 5
- TypeError: Cannot read properties of undefined (reading 'tableName') HOT 4
- Returning values with useKnexQueryBuilder HOT 2
- Can I use `forUpdate` in `typed-knex` ? HOT 2
- Composite key considerations HOT 1
- updateItemWithReturning ignores previous modifications to querybuilder HOT 6
- getCount with postgresql returns string, not number HOT 4
- ValidateTables with multiple databases HOT 2
- Select autocomplete dropdown breaks with TypeScript v4.7.x HOT 4
- Table decorator is incorrectly marked as deprecated HOT 2
- Extending Tables HOT 1
- Wrong table alias in "whereColumn" clause with tables from separate PostgreSQL schemas HOT 1
- Support ‘unknown’ columns HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typed-knex.