Comments (3)
@BlackHoleFox If you need someone to investigate the bug, please explain a bit more what you want to achieve and how to replicate the issue you encountered. Please don't assume other people know the context which you are working on.
from flata.
I worded that badly, sorry. I wasn't asking for a bug investigation, I just wanted clarification on if table objects are only returned if its a dict in the JSON, not a list as there are no docs saying either or.
from flata.
Hi @BlackHoleFox, This repo is inspired by LowDB and JsonServer, and it is supposed to used as back-end of my another python package FlatAPI, this repo was built for test and mock without configuration. It means you can use this repo to mock a database or any other data source in a couple seconds. The most challenge to imitate real database is to mock the schema and relationship of the data. In theory, you can store anything you want in the flata file, e.g. a plain list [1,2,3...], but you won't be able to utilize the built-in query api on a plain list, one of important advantages.
Last but not least, if you use pydoc
you can see the :type data: dict
of storage
. I am not sure if you have looked into them. The storage
is ABC of this repo. It means rtype of element is supposed as dict. It has been explained in the doc. So the type dict is designed on purpose to mimic database. I hope I answer your question.
You can attach a label "question" next time for such inquiry. I am going to close the issue.
from flata.
Related Issues (2)
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 flata.