oliver, to php
@oliver@phpc.social avatar

If you were about to start a medium-sized #PHP project, what would you choose as an #ORM, and why? It should be something stable and well maintained. If the business takes off, then there should be no need to replace that layer.

Caveat: imagine that Doctrine and Eloquent haven't been invented yet.

anubhav, to php

Could anyone suggest an for 7.2 & MariaDB 10 (Rocky Linux 8, Apache 2.4)? So far I have only used raw SQL in PHP.

I found <https://www.doctrine-project.org/projects.html>, <https://github.com/propelorm/Propel2/releases>, & <https://github.com/bcosca/fatfree> "F3". I have zero familiarity with all of those.

I noticed that Doctrine 3 documentation mentions 7.4 & latest stable versions of PHP, ALONG WITH "7.1+" <https://www.doctrine-project.org/projects/doctrine-orm/en/3.1/tutorials/getting-started.html#guide-assumptions>. What would I be missing with PHP 7.2?

sarahboyce, to django
@sarahboyce@mastodon.social avatar

Did you know that many Django newcomers get confused between null=True and blank=True?
With over 1000 upvotes, this is one of the most popular StackOverflow questions on Django.
Here I try to demystify blanks and nulls: https://youtube.com/shorts/2BgoCIYkT4c?feature=shared

Article: https://www.jetbrains.com/guide/python/tips/django-blank-null/

(but as always the Django docs does a really great explanation 👏)

#django #orm

almet, to django French
@almet@tutut.delire.party avatar
h30x, to random French

La page wikipedia qui liste les #ORM (object relational mapping) précise en commentaire :
"Only place entries here that are links to actual Wikipedia articles about notable object–relational mapping software. External links, redlinks, non-notable sites will be removed. If you have questions, use the talk page."

https://en.wikipedia.org/wiki/List_of_object%E2%80%93relational_mapping_software

Mais il y a plein d'ORM qui n'ont pas de page wikipedia. Connaissez-vous un endroit où on pourrait trouver une liste plus complète ?

paulox, (edited ) to django
@paulox@fosstodon.org avatar

I published my latest article in the series on database-generated columns, using PostgGIS, GeoDjango, and the GeneratedField added in Django 5.0 🤖🌍

Send feedback 👇
https://www.paulox.net/2023/12/11/database-generated-columns-part-3-geodjango-and-postgis/

#Django #Database #Python #SQL #PostgGIS #GeneratedColumn #GeneratedField #ORM #GeoDjango

paulox, (edited ) to django
@paulox@fosstodon.org avatar

Django 5.0 has been released 🎉

After months of work, everyone can use this great new version 🙌

My favorite features are:
• 🤖 generated fields
• ✅ database default values
• 🔑 prefetch related for generic foreign keys

Which are your favorite features?
https://www.djangoproject.com/weblog/2023/dec/04/django-50-released/

lo_fye, to php
@lo_fye@mastodon.cloud avatar

I use ORMs like Eloquent for CUD and very simple R, but custom queries for any complex R. It always executes quicker and returns more memory-efficient results. If I want instances of the first page of results’ objects, I select just those IDs and get models back. #php #eloquent #orm

leanmapper, to php

New version 4.0.5

This release added support for PHP 8.3.

https://github.com/tharos/leanmapper

#php #orm #leanmapper

paulox, to django
@paulox@fosstodon.org avatar

I published my second article about database generated columns, using PostgreSQL and new generated fields added in Django 5.0 🤖🐘

I'd be very happy to have your feedback 🤗
https://www.paulox.net/2023/11/24/database-generated-columns-part-2-django-and-postgresql/

paulox, to django
@paulox@fosstodon.org avatar

After Django 5.0rc1 release, I updated my generated fields article ✨

I also tried to improve the titles as suggested by @adamchainz whom I thank 🎨

All feedback is welcome 🤗

https://www.paulox.net/2023/11/07/database-generated-columns-part-1-django-and-sqlite/

#Django #Database #Python #SQL #SQLite #GeneratedColumn #GeneratedField #ORM

paulox, (edited ) to django
@paulox@fosstodon.org avatar

I published an introduction to database generated columns, using SQLite and the new GeneratedField added in Django 5.0 🤖

I'd be very happy to have your feedback on my article 🤗

https://www.paulox.net/2023/11/07/database-generated-columns-part-1-django-and-sqlite/

#Django #Database #Python #SQL #SQLite #GeneratedColumn #GeneratedField #ORM #DjangoCon

jknodlseder, to climate
@jknodlseder@astrodon.social avatar

Are you sure that you want to power your astronomical telescopes with electricity that has such high carbon intensity? #ORM #GTC #CTA #LaPalma #ClimateEmergency

paulox, to opensource
@paulox@fosstodon.org avatar

I didn't know about this SQLite fork. ⎇

I wonder if it can be used with the same SQLite backend for the Django ORM. 🤔

You can read more about our goals and motivation in the announcement article 👇
https://itnext.io/sqlite-qemu-all-over-again-aedad19c9a1c

#sqlite #libsql #fork #opensource #python #django #orm

cincura_net, (edited ) to dotnet
@cincura_net@mas.to avatar

Entity Framework Core, or any ORM for that matter, can be magic, madness and maybe even a sin. Come to my workshop so your following project is not your next mistake. I'll show you incredible things, leave you breathless (and without scars), possibly screaming and crying.

https://www.tabsoverspaces.com/id/233927

kushal, to python
@kushal@toots.dgplug.org avatar
paulox, to django
@paulox@fosstodon.org avatar

I found my second bug in Django 5.0 after the feature freeze 🐛

It's related to GeneratedField and DecimalField and maybe you can help to fix it 👇
https://code.djangoproject.com/ticket/34877

paulox, to django
@paulox@fosstodon.org avatar

I found my first bug in Django 5.0 after the feature freeze 🐛

It's related to GeneratedField and JSONField and maybe you can help to fix it 👇
https://code.djangoproject.com/ticket/34861

#django #django5 #bug #generatedfield #jsonfield #json #sql #orm #migrations

oscarmlage, to django Spanish

I'll never cease to be amazed by the power of Django's ORM. 🚀 #django #orm #micropost #vim

mrysav, to random

If the ecosystem you're writing #code in doesn't have a #database #ORM, and you don't want to write and maintain an ORM, you are doomed to poorly recreate an ORM.

emacsen, to programming

A bit of a programmer rant...

People wonder why I like ORMs even when they're unnecessary. Firstly, I've never liked SQL. I think that writing queries to a RDBMS is something that a computer should do, akin to compilation. In the few times when extreme optimization is warranted, low level code can be generated to suit that specific case. In other times, ORMs usually provide a more natural interface to data that increases readability and code flow.

1/2

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

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

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.

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

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