Giter Club home page Giter Club logo

Comments (7)

sgrif avatar sgrif commented on May 17, 2024

Busted! I only support tuples of an arbitrarily large size, as it takes longer to compile when I increase it. Right now we go to 16 IIRC, I'll bump it to 26

from diesel.

sgrif avatar sgrif commented on May 17, 2024

This is fixed in the next release. You'll need to add features = ["large-tables"] to your Cargo.toml, as this change increases our compile time by a ton, and I don't think common usage requires > 16.

from diesel.

lephyrius avatar lephyrius commented on May 17, 2024

@sgrif That's how it is working with legacy code. :)
THX!
Why can't it be configurable? (might be a stupid question by me. Only knowing C++ templates. )

from diesel.

sgrif avatar sgrif commented on May 17, 2024

Unfortunately since we're working with tuples here, I can't just use an arbitrary number in the macro. (The short version is self.19 is a valid expression, but self.(19-1) is not.)

So I have to put some boilerplate in to make this work, which means I end up picking some arbitrary number. 26 was what my editor macro to add more impls worked up to.

from diesel.

iamsebastian avatar iamsebastian commented on May 17, 2024

I'm totally sure it will be not a default case, but at the moment I got three tables (the whole db contains ~ 50 tables) with more than 26 columns (up to 40 columns). Is there are any chance, to get this compiled? I just tried to migrate an old data-structure from MySQL to Pg and would like to do a test-connection with the diesel-demo (, where the structure gets magically converted to ORM 😀 )

from diesel.

sgrif avatar sgrif commented on May 17, 2024

You can double it again with the "huge-tables" feature

from diesel.

iamsebastian avatar iamsebastian commented on May 17, 2024

Well done, sir. Thank you, Sean.

from diesel.

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.