DryORM
Code
Result
no cache
Django 6.0
Django 5.2.8
Django 4.2.26 LTS
SQLAlchemy 2.0
Prisma 6.3
SQLite
PostgreSQL 17.4
PostGIS 3.5 (PostgreSQL 16)
MariaDB 11.4.5
Select a template
django
sqlalchemy
prisma
from django.contrib.gis.db import models from django.contrib.gis.geos import Point class Cafe(models.Model): name = models.CharField(max_length=100) location = models.PointField() def run(): home = Cafe.objects.create(name='My Home', location=Point(0, 0)) cafe = Cafe.objects.create(name='Cool Cafe', location=Point(0.001, 0.001)) print(f'Home at {home.location}') print(f'Cafe at {cafe.location}') close_places = Cafe.objects.filter(location__distance_lte=(home.location, 200)) print('Places within 200m of home:') for place in close_places: print(place.name)
Output
Show Template
No output.
Queries
INSERT
I
UPDATE
U
SELECT
S
DELETE
D
DDL
D
TCL
T
Queries
Q
(
0
)
No queries.
✖ Close
Save & Share
✖
private?
Save
Save & Copy