Designing a Custom ORM Using Python Metaclasses
Class ↔ Table, an object instance ↔ a row, an object attribute ↔ a column value, object.attribute ↔ field
Store an object → dict → JSON → MySQL
MySQL → JSON → dict → reconstruct object
Convert all attribute names and values of an object into keys and values of a dictionary
Serialize the mapping dictionary into JSON format
Encode the JSON dat ...
Posted on Thu, 20 Aug 2026 16:33:37 +0000 by Shellfishman