Giter Club home page Giter Club logo

Comments (2)

3lvis avatar 3lvis commented on August 26, 2024

@AndrewSB

  1. Is it possible to use query language other than a predicate? Something compiled and strongly typed?

I was thinking on bootstrapping this, that means relaying on existing tools as much as possible.

  1. What are the potential reasons for the local DB to error out? If they can all be mitigated, It would be so cool to be able use local persistent storage as one does with assigning a variable - a synchronous assignment

I'm not sure I follow. If the DB errors then you'll most likely want a crash, right?

from dream.

AndrewSB avatar AndrewSB commented on August 26, 2024
  1. The ideal interface would be treating the DB as an array, so I could do something like Database.Posts.filter { $0.id == "the id I'm looking for" }.first!, so if its possible to take that and make it performant, it would be 🔥. If not, the closer we can get to that the better. Maybe under the hood, Dream can take the closure { $0.id == "the id I'm looking for" } and translate it into a predicate?
  2. What I'm saying is it would be awesome to be able to Database.posts.append(newPost), and not have to worry about the errors, or the asynchronicity of the operation. Treating the database as you would something in memory, reducing cognitive load of using persistent storage.
    It's pretty far out though, I'm not sure if it's possible to do this yet 😮

from dream.

Related Issues (4)

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.