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()[source]

Add Spanner-specific attribute to the Django OrderBy class.