Comments (7)
You could serialize the objects and store that as a string value.
from flintstone.
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.
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.
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.
Interesting piece of code from Laravel... https://github.com/laravel/framework/blob/5.0/src/Illuminate/Queue/SerializesModels.php
from flintstone.
Hmmm...That looks interesting! I'll take a look at this
from flintstone.
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)
- changing the replace method visibility HOT 2
- JSON Format HOT 1
- Cannot add key/value to same ID HOT 1
- Update only one name in database HOT 1
- flintstone Injections HOT 3
- Registration form and checking email and login HOT 6
- Where is the Distribution version? HOT 1
- Performance considerations HOT 4
- set returns void instead of bool HOT 1
- Unserialize Notice HOT 2
- Use magic methods HOT 2
- location of database? HOT 1
- package releases as phar
- Flinstone out of composer
- Without Composer HOT 3
- Add contains/has_key method to support boolean type data
- why you use flush not truncate/clearAll to clear the database? HOT 1
- Sometimes gets "stuck" setting a key/value HOT 1
- Idea: support CSV files HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flintstone.