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

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/

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

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

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

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

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

leanmapper, to php

New version 4.0.5

This release added support for PHP 8.3.

https://github.com/tharos/leanmapper

#php #orm #leanmapper

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 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/

oscarmlage, to django Spanish

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

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

h30x, to random French
@h30x@mastodon.zaclys.com avatar

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 ?

wyri, to github
@wyri@haxim.us avatar

Writing this month's #GitHub sponsors update while watching The Cup Head Show on the side: https://github.com/sponsors/WyriHaximus

(It includes a blog post preview 😎 .)

wyri,
@wyri@haxim.us avatar

Also added a bit about my @reactphp based #PHP #ORM and my thoughts on #ReactPHP and how to get ORM's to it: https://github.com/WyriHaximus/reactphp-simple-orm

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.

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

SenseException, to random German
@SenseException@phpc.social avatar

Phoenix is reopening the case for a third time.

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

almet, to django French
@almet@tutut.delire.party avatar
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
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?

SenseException, to golang German
@SenseException@phpc.social avatar

When I did my multilanguage SQL/ORM talk many years ago, GORM was one of my choices for the / parts.
https://github.com/go-gorm/gorm

cincura_net, to dotnet
@cincura_net@mas.to avatar

Package Microsoft.EntityFrameworkCore has now over 1B downloads.

🎉

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.

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