SQL wrappers (activerecord) for python recommendation?
is there an activerecord (any similar SQL wrapper) for python? which is useful for:
- used in server python script
- a light weight
- supports MySQL
What do I need to do:
- insert (file name, file size, md5 file, file itself) into columns (string, int, string, BLOB)
- if the same file (checksum + filename) does not exist in db
THH
+2
a source to share
1 answer
You can consider SQLAlchemy alongside Elixir :
Elixir is a declarative layer on top of the SQLAlchemy library. It is a fairly thin wrapper that provides the ability to create simple Python classes that map directly to relational database tables (often referred to as the Active Record design pattern), providing many of the benefits of traditional databases without losing the convenience of Python objects.
+5
a source to share