musurca / narwhal Goto Github PK
View Code? Open in Web Editor NEWA whale of an sqlite3 ORM for Python
License: GNU General Public License v3.0
A whale of an sqlite3 ORM for Python
License: GNU General Public License v3.0
Right now the Reference class is equivalent to a foreign key relationship. However, since foreign key constraints have now been enabled (to perform cascades on delete), References are now required to have a valid definition before a row can be added to the table. I would however prefer that References were optional, like normal Python objects, and could therefore retain a None value by default.
One possible way to address this is to add to a single row to each table when first created, with dbid = 0. This row will be considered a "NULL" reference (i.e. None) if addressed.
If enforcing a valid reference is considered useful, then maybe Reference could be subclassed into a new class called Requirement. The presence of this type would prohibit the parent from being added to the database unless it had a valid value.
Thoughts?
How well does it scale?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.