khalidabuhakmeh, to typescript
@khalidabuhakmeh@mastodon.social avatar

Does anyone have a good #ORM for @deno_land that works with #SQLite?

I’m using the SQLite dependency, but it requires a bit of mapping. Any advice/hints would be appreciated. #TypeScript

vwbusguy, to PostgreSQL
@vwbusguy@mastodon.online avatar

Sometimes feels like the of . It has so many crazy features and yet I've never had comfortable muscle memory in it, so it always takes me longer to do about anything vs some flavor of (or , depending on which tract you followed to get here).

Stark9837,
@Stark9837@techhub.social avatar

@psFried @vwbusguy

I've been spoiled by #ORM and honestly I haven't even noticed differences between #Postgress and other databases.

lsmith, to python

any reading recommendations to optimize memory use of a dict containing lists which in turn contain lots of small dicts? once build up they can be read-only.

Stark9837,
@Stark9837@techhub.social avatar

@lsmith

In memory is also a good option. I like sqlite because there are great tools like which allows you to have features, but if it is simple I would just go with the built-in libraries to improve performance.

I also like sqlite with , as I have the simplicity of a sqlite database, but I can easily share it with containers with mounts and persist the data during development and production.

also has greay extensions for viewing sqlite databases, making it a glorified csv with advanced query capabilities.

setebos, to random
@setebos@mastodon.online avatar

ORMs can be helpful for rapid development, but as projects grow and evolve, they can become a double-edged sword. Dependencies, #performance bottlenecks, and loss of control over #SQL optimizations can hinder mature projects. Striking the right balance between abstraction and direct #database interaction is crucial.

Working in a team on a complex project w/o an ORM is much simpler than w/ it.
#ORM #db #development #DDD #PersistenceIgnorance

setebos,
@setebos@mastodon.online avatar

@MarcinW while ORMs may offer raw query capabilities and query previews, concerns about performance bottlenecks and loss of control over #SQL optimizations can still arise. the statement holds true as managing complex projects without an #ORM can often be simpler than with one.

to address your skillset point - why would you want to limit your hires by requesting ORM+SQL knowledge when you can only ask for SQL?

Stark9837, to python
@Stark9837@techhub.social avatar

What is your favorite for and ? I am currently looking for an ORM judt to sinplify my implementation.

I am considering going for SQLite because the writes and reads are low, and the total size will also be a few 100 records, but I want the strengths of SQL. Also, I am running it in , so it simplifies the deployment.

I am looking at and also saw on .

This is the first time I am doing something like this. Normally, my data is simply printed to CSV files.

Stark9837,
@Stark9837@techhub.social avatar

@setebos

I am aware of the limitations, but I am far below them. I want to project to be easily deployable by others and then the usage will also be low enough for it to suffice.

feels a lot like the web-development that you get for and , but I like , the docs also seem good.

orsinium,
@orsinium@fosstodon.org avatar

@Stark9837

SQLAlchemy is the most popular #Python #ORM and has a great support for async/await and type annotations. The documentation is quite messy and overwhelming as soon as you need to go beyond the tutorial, though, and there are too many ways to do the same thing.

Peewee is much easier and smaller but there is no support for async/await and typing and never will be because the author doesn't like it.

I listed here a few alternatives that you might try:
https://t.me/itgram_channel/581

Stark9837,
@Stark9837@techhub.social avatar

@orsinium

I prefer to use something more popular, that the support is better. The docs of are a bit odd. I found myself getting stuck after the tutorial, like you said. It seems 2.0 documentation isn't the best with the new declarative style, but I found some other resources, and I am diving into code I found on to see how others did it.

is cool, but the names like that always turn me off. I need serious names for libraries I use, I don't know. But I can see that it had great influence from modern styles, so it might be better for people coming from that.

Thanks for the info!

appliedgo, to random German

The biggest illusion about ORMs is the expectation that they require no SQL knowledge. In due time, you'll have to troubleshoot your ORM code at SQL level.

ORMs help bridging the object/relational gap. But you have to know both sides to successfully use this bridge.

So learn SQL first, then pick an ORM, a SQL builder, code generator, raw SQL, or whatever and write great DB-centric apps. But learn SQL first.

#sql #orm

paulox, to random
@paulox@fosstodon.org avatar

Laurent Tramoy is holding the workshop "Mastering the Django ORM with PostgreSQL" at DjangoCon Europe 2023 in Edinburgh 🦄🏴󠁧󠁢󠁳󠁣󠁴󠁿🇪🇺

#DjangoCon #DjangoConEU #DjangoConEurope #Django #ORM #Postgres #PostgreSQL

CC @djangoconeurope

https://pretalx.com/djangocon-europe-2023/talk/DK3XET/

janriemer, to rust

Oh wow, this looks freakin' awesome! 🤩

welds - An async #ORM written in #Rust using the #sqlx framework.

https://github.com/weldsorm/welds

You can even drop down to low-level sqlx queries, in case you need it:

https://github.com/weldsorm/welds/blob/c9a9a664cf07b99314ac773dd9ce20f5efc7301c/tests/postgres/tests/all_tests.rs#L169

#RustLang #CrateTip #Crate

fabian, to programming
@fabian@floss.social avatar

🔖 ormar
https://collerek.github.io/ormar/

Mini ORM for Python, with support for Postgres, MySQL, SQLite to be used with async frameworks

#python #ORM #postgresql #SQLite #FastAPI #pydantic #SQLAlchemy #bookmarked

mjgardner, to random
@mjgardner@social.sdf.org avatar

TIL about #SQL window functions and @rrwo’s helper module for them in the leading #Perl #ORM, DBIx::Class. You can use them in many different relational database systems like #MariaDB, #MySQL, #PostgreSQL, and #SQLite. https://fosstodon.org/@rrwo/110334747507360471

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • magazineikmin
  • ethstaker
  • InstantRegret
  • tacticalgear
  • rosin
  • love
  • Youngstown
  • slotface
  • ngwrru68w68
  • kavyap
  • cubers
  • DreamBathrooms
  • provamag3
  • mdbf
  • cisconetworking
  • GTA5RPClips
  • modclub
  • khanakhh
  • everett
  • Leos
  • osvaldo12
  • normalnudes
  • tester
  • Durango
  • anitta
  • JUstTest
  • All magazines