Comments (3)
I would actually implement something like the following (though perhaps as an extension):
- Perform a full table scan
- For each document update a
Schema
object - If all documents contain a certain key, it is marked as a
Key
, else it's something like anOptional
class.
If the instructions are unclear I will make a gist and provide you with the link later.
from tinydb.
@pjakobsen see https://gist.github.com/eugene-eeo/849eab3134bed48a4f0f
from tinydb.
@pjakobsen It seems like @eugene-eeo's solution works for you so I'm closing this.
from tinydb.
Related Issues (20)
- Software-readable query objects + possibly forking the query language as a separate lib HOT 3
- Random - Question HOT 3
- List not updating
- Support `typing-extensions ^4` HOT 1
- Can't write accent in database HOT 3
- Multiple Thread Overwrites
- Release 4.6.0 breaks with AttributeError: 'function' object has no attribute 'is_cacheable' HOT 3
- Insert at index HOT 4
- doc_id is preemptively converted to string before being passed to storage class HOT 2
- TinyDB and a webserver HOT 4
- Memory error with db.insert HOT 6
- insert only if document not exists HOT 4
- Why not using os.rename to write file? HOT 8
- Query syntax causing pylint "singleton-comparison" and flake8 E712 HOT 2
- Some problems in advanced Query HOT 4
- Suggesting Optimization for _update_table function HOT 3
- convert type before matching in query HOT 3
- Query multiple docs by ID HOT 6
- Info on Concurrency HOT 7
- Argument of type "QueryInstance" cannot be assigned to parameter "cond" of type "QueryLike" HOT 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 tinydb.