Postgres

Indexes

Postgres specific indexes.

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

Fields

Postgres specific fields.

class tortoise.contrib.postgres.fields.ArrayField(element_type='int', **kwargs)[source]
class tortoise.contrib.postgres.fields.TSVectorField(source_field=None, generated=False, primary_key=None, null=False, default=None, unique=False, db_index=None, description=None, model=None, validators=None, **kwargs)[source]

Functions

class tortoise.contrib.postgres.functions.ToTsVector(field)[source]

to to_tsvector function

class tortoise.contrib.postgres.functions.ToTsQuery(field)[source]

to_tsquery function

class tortoise.contrib.postgres.functions.PlainToTsQuery(field)[source]

plainto_tsquery function

Postgres full text search.

class tortoise.contrib.postgres.search.SearchCriterion(field, expr)[source]