Dump SQLModel banner

Dump SQLModel

9 devlogs
13h 37m 4s

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

Shipped this project!

Hours: 5.67
Cookies: 🍪 115
Multiplier: 20.32 cookies/hr

I really really sorry for not focus on doing devlogs cryign
Btw, this release focused on fixing bugs. Beside that, I also add relationship list support, which mean you can dumps and loads list of relationship yayayayayay

vair.​nooi

Sorry for not create much devlogs ;-;
I just push a new release and this is all of the updates:

Updates in this release fastparrot

  • Add Relationship list support. Now you can dump and load a list of relationship 🎉
  • Add unloaded relationship handler in Deserializer
  • Remove requirement of id field in model since the key_factory is here
  • Add tests
  • Update docs

Fixed bugs bugparrot

  • Fix infinite recursive call in Deserializer (through calling stack and linker mechanism)
  • Remove __class field in relationship object
  • Pass attr_to_key to Serializer in Redis client
  • Ensure Redis client will load and dump data with JSON module
  • Replace LostRef error with WhereIsMyRef
  • Remove get_kwargs in Redis client
Attachment
0
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

The deserializer is done nayayayayay

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