Skip to content
Discussion options

You must be logged in to vote

To be honest, I forgot why I needed this feature. However, perhaps at that time, I just wanted to find a way to switch between databases easily.

For example, suppose I have some database models:

Model = SQLModel

class UserEntity(Model ):
    username: str
    
class PostEntity(Model ):
    some_field: str

ideally, just by switching SQLModel to a different database mapper such as a MongoDB mapper (https://github.com/BeanieODM/bunnet) I would be able to switch my database without changing much of my code.

Model = Document

However, I realize that, whenever someone switches their database, some changes in code are almost always unavoidable.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mubarakalmehairbi
Comment options

Answer selected by mubarakalmehairbi
Comment options

You must be logged in to vote
1 reply
@mubarakalmehairbi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
2 participants