Giter Site home page Giter Site logo

sqlite's People

Contributors

rezich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sqlite's Issues

Verbose mode needs "stacking"

If you have a Model with a @autofetch @do_not_serialize field, and the associated fetch procedure runs SQL, then the Verbose output gets messed up, because there's no pushing/popping going on between the "nested" queries.

Cached(T) does not permit foreign keys to the same table

The Cached(T) interface seemed like a good idea, but it doesn't permit tables to have columns that are foreign keys to the same table.

A workaround using notes may be possible:

User :: struct { using #as model: Model;
    parent_id: s64; @fk=User
}

But this breaks a lot of the benefits that the ORM gives you, such as being able to fetch(*some_cached_user.parent).

Another possible solution: replace Cached(T) with Model.Cached, maybe? If we can get the model name out of it, that is, which we might not be able to.

Fetch procedures should be simpler

When you have a Model with a field that's @autofetch @do_not_serialize, it's quite verbose to execute a simple SQL command to get a value—this should be improved.

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.