Expressions API

django_spanner.expressions.order_by(self, compiler, connection, **extra_context)[source]

Order expressions in the SQL query and generate a new query using Spanner-specific templates.

Return type

str

Returns

A SQL query.

django_spanner.expressions.register_expressions(using_django_3=False)[source]

Add Spanner-specific attribute to the Django OrderBy class for django 2.2.