Björn Ricks · @bjoernricks
45 followers · 236 posts · Server norden.social

I have to say docs are painful. Very very difficult to find the right information. In contrast docs are a pleasure to read! slqmodel is a thin layer to combine sqlalchemy and pydantic. Thus you need to lookup the touch stuff in the sqlalchemy docs.

#sqlalchemy #sqlmodel

Last updated 1 year ago

Björn Ricks · @bjoernricks
45 followers · 233 posts · Server norden.social

Today I am going to play with and /#sqlalchemy. I am curious how it will work out because I am a big fan of the ORM. sqlalchemy always felt overengineered and more difficult to use.

#fastapi #sqlmodel #django #python

Last updated 1 year ago

Riverfount :python_logo: · @riverfount
64 followers · 91 posts · Server hachyderm.io

Alguém aqui tb sente que a parte mais complexa ao se pensar um sistema, por mais simples que ele seja, é a modelagem de dados?? Surra dessas normalizações!

#python #postgresql #sqlmodel #fastapi

Last updated 1 year ago

Serge Matveenko ♻️☮️Ⓐ · @lig
235 followers · 2788 posts · Server fosstodon.org

Do you use Pydantic in your projects? Do you know that Pydantic v2 is coming? Do you know that Pydantic has its own Fediverse account?

Now you know and you definitely should follow @pydantic for more updates:)

#python #pydantic #fastapi #sqlmodel #pydantic2

Last updated 1 year ago

Bob Belderbos · @bbelderbos
355 followers · 243 posts · Server fosstodon.org

New Pybites video is up:
Database migrations matter! Get up and running with Alembic + sqlmodel
youtu.be/gekC1ESLxPs

#python #databases #alembic #sqlmodel

Last updated 2 years ago

Remi · @remi
55 followers · 381 posts · Server universeodon.com

Well I ventured into the land of and it went pretty well. I set up the entire database layout in a lot less code. Still have to figure out the rendering of data and doing the application bits but the foundation is there I think. Also need to beat the results into a form that works for me. Not entirely sure I like the class that describes the table being the same name as the row object. Creating a table class model for "Animal" will create a table named animal AND a row is a instance of the class "Animal". Traditionally I prefer plurals. A table may be "Animals" an instance of data (the row) would be an "Animal". But I can probably figure out a means to tweak that.

#sqlmodel #python

Last updated 2 years ago