GithubHelp home page GithubHelp logo

Select * from table about mammoth HOT 5 CLOSED

ff00ff avatar ff00ff commented on May 20, 2024
Select * from table

from mammoth.

Comments (5)

martijndeh avatar martijndeh commented on May 20, 2024 1

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.

martijndeh avatar martijndeh commented on May 20, 2024

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.

theoparis avatar theoparis commented on May 20, 2024

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.

martijndeh avatar martijndeh commented on May 20, 2024

Eeks this was not published yet. 1.2.0 is available now and it should work using that version.

from mammoth.

AuspeXeu avatar AuspeXeu commented on May 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.