mercredi 7 avril 2021

Does Django ORM implement Builder pattern?

I'm not sure but it seems that Django ORM implements Builder design pattern, right? Example of query making:

Entry.objects \
    .filter(headline__startswith='What') \
    .exclude(pub_date__gte=datetime.date.today()) \
    .filter(pub_date__gte=datetime.date(2005, 1, 30))

Aucun commentaire:

Enregistrer un commentaire