The textsearch module defines eight classes: classes TSConfiguration, TSDictionary, TSParser and TSTemplate derived from DbSchemaObject, and classes TSConfigurationDict, TSDictionaryDict, TSParserDict and TSTemplateDict derived from DbObjectDict.
TSConfiguration is derived from DbSchemaObject and represents a PostgreSQL text search configuration.
A text search configuration definition
Convert a text search configuration to a YAML-suitable format
Returns: | dictionary |
---|
Return SQL statements to CREATE the configuration
Returns: | SQL statements |
---|
TSConfigurationDict is derived from DbObjectDict. It is a dictionary that represents the collection of text search configurations in a database.
The collection of text search configurations in a database
Initialize the dictionary of configs by examining the input map
Parameters: |
|
---|
Generate SQL to transform existing configurations
Parameters: | input_map – a YAML map defining the new configurations |
---|---|
Returns: | list of SQL statements |
Compares the existing configuration definitions, as fetched from the catalogs, to the input map and generates SQL statements to transform the configurations accordingly.
TSDictionary is derived from DbSchemaObject and represents a PostgreSQL text search dictionary.
A text search dictionary definition
Return SQL statements to CREATE the dictionary
Returns: | SQL statements |
---|
TSDictionaryDict is derived from DbObjectDict. It is a Python dictionary that represents the collection of text search dictionaries in a database.
The collection of text search dictionaries in a database
Initialize the dictionary of dictionaries by examining the input map
Parameters: |
|
---|
Generate SQL to transform existing dictionaries
Parameters: | input_map – a YAML map defining the new dictionaries |
---|---|
Returns: | list of SQL statements |
Compares the existing dictionary definitions, as fetched from the catalogs, to the input map and generates SQL statements to transform the dictionaries accordingly.
TSParser is derived from DbSchemaObject and represents a PostgreSQL text search parser.
A text search parser definition
Return SQL statements to CREATE the parser
Returns: | SQL statements |
---|
TSParserDict is derived from DbObjectDict. It is a dictionary that represents the collection of text search parsers in a database.
The collection of text search parsers in a database
Initialize the dictionary of parsers by examining the input map
Parameters: |
|
---|
Generate SQL to transform existing parsers
Parameters: | input_map – a YAML map defining the new parsers |
---|---|
Returns: | list of SQL statements |
Compares the existing parser definitions, as fetched from the catalogs, to the input map and generates SQL statements to transform the parsers accordingly.
TSTemplate is derived from DbSchemaObject and represents a PostgreSQL text search template.
A text search template definition
Return SQL statements to CREATE the template
Returns: | SQL statements |
---|
TSTemplateDict is derived from DbObjectDict. It is a dictionary that represents the collection of text search templates in a database.
The collection of text search templates in a database
Initialize the dictionary of templates by examining the input map
Parameters: |
|
---|
Generate SQL to transform existing templates
Parameters: | input_map – a YAML map defining the new templates |
---|---|
Returns: | list of SQL statements |
Compares the existing template definitions, as fetched from the catalogs, to the input map and generates SQL statements to transform the templates accordingly.