Postgres

Indexes

Postgres specific indexes.

class tortoise.contrib.postgres.indexes.BloomIndex(*expressions, fields=None, name=None)
class tortoise.contrib.postgres.indexes.BrinIndex(*expressions, fields=None, name=None)
class tortoise.contrib.postgres.indexes.GinIndex(*expressions, fields=None, name=None)
class tortoise.contrib.postgres.indexes.GistIndex(*expressions, fields=None, name=None)
class tortoise.contrib.postgres.indexes.HashIndex(*expressions, fields=None, name=None)
class tortoise.contrib.postgres.indexes.SpGistIndex(*expressions, fields=None, name=None)

Fields

Postgres specific fields.

class tortoise.contrib.postgres.fields.TSVectorField(source_field=None, generated=False, pk=False, null=False, default=None, unique=False, index=False, description=None, model=None, validators=None, **kwargs)

Functions

class tortoise.contrib.postgres.functions.ToTsVector(field)

to to_tsvector function

class tortoise.contrib.postgres.functions.ToTsQuery(field)

to_tsquery function