Comments (5)
So this just hit master:
db.select(db.listItem.star()).from(db.listItem)
which produces
SELECT list_item.* FROM list_item
I consider this question resolved and will close this issue. In next few days I'll release a new version to npm and update the documentation.
from mammoth.
You are correct! You need to spell out all the select columns. There was simply no need for the * yet. Personally, I try to avoid it so I'm hesitant to give it a high priority. It's also a little tricky especially considering joins, table.*, etc. That being said, Mammoth should support it because it's part of SQL. Did you think of a nice syntax yet or were you just wondering?
from mammoth.
Any updates on this? It says TS2339: Property 'star' does not exist on type 'Table"routes", { id: Column"id", "routes", string, true,
Also: TS2305: Module '"../../node_modules/@ff00ff/mammoth/.build"' has no exported member 'star'.
I'm using mammoth 1.1.0 btw
from mammoth.
Eeks this was not published yet. 1.2.0 is available now and it should work using that version.
from mammoth.
@martijndeh would probably good to also have a tag corresponding to each release so that it's easier for people to realize what code their current version is based on :)
from mammoth.
Related Issues (20)
- Maintainers HOT 2
- Star select no longer working HOT 2
- ON CONSTRAINT name cannot be a parameter token HOT 1
- select where not like HOT 3
- Next package publication? HOT 5
- Support empty strings for DEFAULT HOT 2
- How to declare `IDENTITY` columns? HOT 2
- orderBy alias HOT 7
- Alias coalesce column HOT 4
- Automatically resolving schema and relationships directly from the database HOT 2
- Temporal tables
- Mixing `raw` with `Expression` values.
- `Array<Token>` is assignable to `Token`
- Way to associate additional metadata with schema?
- Support custom types
- Generated SQL for WHERE clause doesn't match AST nesting HOT 1
- How can we help Mammoth 2.x move forward?
- guidance for Date objects
- How to configure db.count() to return a `number` type?
- Query inside jsonb
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 mammoth.