Dump SQLModel banner

Dump SQLModel

8 devlogs
9h 6m 42s

A simple library that help you dump and load SQLModel with Relationship

This project uses AI

I use Github Coplilot for debugging :D

vair.​nooi

I have fixed a few bugs according to Copilot:

  • Load and unload the data from Redis correctly (I forgot to put json.loads and json.dumps in some function pf)
  • Pass attr_to_key to Serializer in Redis client
  • Pass set_kwargs to set command
  • Remove the requirement of id field in a model, used to create reference key, which is replaced with attr_to_key and key_factory.
  • Add unloaded relationship to Deserializer (return None)
  • Remove depth control in Deserializer
  • And so more (look at the commit history below)

Atfer all, I think I need to sleep more because my brain is not braining now cryign

Attachment
0
vair.​nooi

Shipped this project!

Hours: 7.95
Cookies: 🍪 145
Multiplier: 18.27 cookies/hr

This is a simple library to dump and load the SQLModel object.
It uses seen and reference mechanism to refer the relationship. It also support Redis as the reference manager.
But the biggest disadvantage is it require a garbage collector to get rid of the “too old” reference.
I hope you will enjoy this project.

vair.​nooi

I have fixed a few bugs related to Redis client. I also split the async function into separate class so it can run smoothly yayayayayay

Attachment
0
vair.​nooi

I added attr_to_key as another way to modify the reference key mc_fox_spin

Attachment
0
vair.​nooi

I wrote the Readme and created to pipeline for release hyperfastparrot

Attachment
Attachment
0
vair.​nooi

I added Redis support, now it will push and pull the data directly to the Redis yayayayayay

Attachment
0
vair.​nooi

I added self_ref mode yay
In this mode, instead of storing reference in a separate place, now it will be stored in itself. This could help in managing obj but will increase the size of the output sad-cat-thumbs-up

Attachment
0
vair.​nooi

I have completed the Serializer part.
It handle Relationship by using reference. If it is not mentioned before, stores it into an object, if so, reference to it :D
It also help deserialize object by storing object class so it can reconstruct the object yay

Attachment
0