simonsobs / acondbs Goto Github PK
View Code? Open in Web Editor NEWProductDB back-end API
License: MIT License
ProductDB back-end API
License: MIT License
Make the setup similar to that of nextline-graphql.
This is to make the code similar to nextline and, eventually, turn ProductDB into plugins of nextline-graphql.
Although ProductDB and Nextline appear quite different, their backends are actually very similar. Both are GraphQL servers with SQLAlchemy. Nextline has an additional feature of executing Python code. ProductDB and Nextline can be
implemented as the same pluggable framework with different plugins.
The Nextline backend is already implemented as a pluggable framework with plugins. Nextline-graphql is the pluggable framework (It needs to be renamed for clarity). ProductDB can be turned into plugins of nextline-graphql.
The advantage of this approach is large. Generic plugins can be used by both projects. For example, we can implement a plugin for full-text DB search and use it for both ProductDB and Nextline. In addition, site-specific features can be implemented as plugins. For example, we can develop a plugin for ProductDB for SO without affecting ProductDB for ACT.
It is not clear what will happen to the backup if DB changes while a backup is being taken.
In the current implementation, the backup to CSV files is taken table by table. It might be possible that a change in the DB across multiple tables is reflected in tables backed up later in the backup but not in tables backed up earlier, which will end up with an inconsistent set of backup CSV files.
It is not clear if it is sufficient to use the same SQLAlchemy connection during the backup.
backend for simonsobs/acondbw#9
Currently, the combination of a product type and product name needs to be unique. This will be an inconvenient constraint in the future, for example, if acondbs is ported to manage other types of data. In fact, it caused a problem when importing Yelp data.
The initial backup plan: export the DB contents to CSV files and push them to GitHub.
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.