thp / minidb

Store Python objects in SQLite 3. Concise, pythonic API. Easy to write, relatively easy to read. A kind of super simple ORM, if you will. Give it a try.
https://thp.io/2010/minidb/
Other
66 stars 15 forks source link

ForeignKeys - Best Pratices #23

Open MaxMorais opened 3 months ago

MaxMorais commented 3 months ago

Hi @thp, first of all congratulations for that amazing piece of work!

I checked the code and it's perfectly suitable for my project, right now!

I was just wondering, did you have a thought about how to handle foreign keys?

thp commented 2 months ago

These are handled manually by the application for now. If you want to try something simple, patches are accepted, but do note that if you need to have fancy ORM-like features, SQLAlchemy or something similar might be the way to go.