memphis-iis / gludb Goto Github PK
View Code? Open in Web Editor NEWGeneralized Learning Utilities Database Library
License: Apache License 2.0
Generalized Learning Utilities Database Library
License: Apache License 2.0
New functionality - we should be able to change a table's name, recreate the table, and then do a full read/write.
Notes:
Hello World!
In DBObject, we take control of init and give the user the setup method.
That's because Python method dispatch is MRO, named-based, and handled at runtime. That's all great, but if the original init that we replace manually called the superclass init, then our replacement init gets called. And that happens regardless of whether or not you use the super keyword. Another issue is the possibility of infinite recursion if you're not careful.
In fact, constructor call order with an arbitrary inheritance hierarchy is pretty difficult to support when your providing the kind of extra functionality we're talking about. That's why the design is switched - our special constructor is called once for the entire hierarchy and uses Python's MRO on class variables to determine what Fields it needs.
However, clobbering a user-supplied init is pretty much always a bad idea, so we should throw an exception. Something like:
prev_init = getattr(cls, "__init__", None)
if callable(prev_init) and prev_init != object.__init__:
raise TypeError('Classes with user-supplied __init__ should not be decorated with DBObject. Use the setup method')
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.