Coder Social home page Coder Social logo

Object Storage about flintstone HOT 7 CLOSED

fire015 avatar fire015 commented on May 25, 2024
Object Storage

from flintstone.

Comments (7)

TheDigitalOrchard avatar TheDigitalOrchard commented on May 25, 2024

You could serialize the objects and store that as a string value.

from flintstone.

joshualjohnson avatar joshualjohnson commented on May 25, 2024

Flintstone will already do that for you. If you store an array with one object in it, FlintstoneDB will serialize the object when it stores. But then I am storing an array with an object.

I think Flintstone can support storing Objects directly relatively easy. Wanted to see if you guys agreed. That way a User key could be associated with a User object.

from flintstone.

joshualjohnson avatar joshualjohnson commented on May 25, 2024

It looks to me that Flintstone already supports storing objects directly. I will fork update the datatype check to remove the this restriction.

from flintstone.

joshualjohnson avatar joshualjohnson commented on May 25, 2024

Im going to look into this again and see if I can get it working. I think this would be a great addition to this piece of software!

from flintstone.

fire015 avatar fire015 commented on May 25, 2024

Interesting piece of code from Laravel... https://github.com/laravel/framework/blob/5.0/src/Illuminate/Queue/SerializesModels.php

from flintstone.

joshualjohnson avatar joshualjohnson commented on May 25, 2024

Hmmm...That looks interesting! I'll take a look at this

from flintstone.

joshualjohnson avatar joshualjohnson commented on May 25, 2024

So the problem is with an associative array! We can't store an associative array in Json. It is physically impossible. So I think instead of just allowing the data to be stored, there should be a constraint to now allow you to store associative arrays in a JSON format. This makes sense to me. Any thoughts?

from flintstone.

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.