SearchQueryField
This class represents a PostgreSQL tsquery data type for full-text search queries. It ensures that the PostgreSQL backend is properly installed and maps the field to the specific database type required for text search operations.
Constructor
Signature
def SearchQueryField() - > null
Methods
db_type()
@classmethod
def db_type(
connection: DatabaseConnection
) - > string
Returns the database column type name used for this field in PostgreSQL.
Parameters
| Name | Type | Description |
|---|---|---|
| connection | DatabaseConnection | The current database connection object used to determine backend-specific logic. |
Returns
| Type | Description |
|---|---|
string | The PostgreSQL data type name 'tsquery' used for full-text search queries. |