Code Monkey home page Code Monkey logo

Comments (7)

pudo avatar pudo commented on June 16, 2024

The reason this is done is because we cannot create a table without columns. As an alternative, we could implement a lazy table creation scheme where the table is only created as "ensure_columns" is first called, not upon database.get_table. Still, would you agree that id should be opt-out rather than opt-in?

from dataset.

zarino avatar zarino commented on June 16, 2024

Opt-out is good with me. I can see why it would be useful for newbies to have an automatic "id" column (even if it is just a copy of the "rowid" column they'd get anyway).

from dataset.

abelsonlive avatar abelsonlive commented on June 16, 2024

+1 on this issue. I just spent an hour slamming my head against the wall. what if you just named the default primary key _id so that people wouldn't run into this error when inserting their own id column ?

from dataset.

dnatag avatar dnatag commented on June 16, 2024

I vote for the "opt-out" or designate the name of primary key column user desired

from dataset.

pudo avatar pudo commented on June 16, 2024

I like the opt-out approach best, too. Would you want to submit a pull request?

from dataset.

dnatag avatar dnatag commented on June 16, 2024

OK. Let me read your codebase first.

On Tuesday, September 3, 2013 at 11:17 AM, Friedrich Lindenberg wrote:

I like the opt-out approach best, too. Would you want to submit a pull request?

β€”
Reply to this email directly or view it on GitHub (#19 (comment)).

from dataset.

pudo avatar pudo commented on June 16, 2024

Fixed in #27, thanks @dnatag!

from dataset.

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.