GPUdb.filter_by_string( table_name = None, view_name = '', expression = None,
mode = None, column_names = None, options = {} )
Calculates which objects from a table, collection, or view match a string expression for the given string columns. The options 'case_sensitive' can be used to modify the behavior for all modes except 'search'. For 'search' mode details and limitations, see Full Text Search.
Input Parameter Description
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
table_name | str | Name of the table on which the filter operation will be performed. Must be an existing table, collection or view. | ||||||||||||
view_name | str | If provided, then this will be the name of the view containing the results. Has the same naming restrictions as tables. Default value is ''. | ||||||||||||
expression | str | The expression with which to filter the table. | ||||||||||||
mode | str | The string filtering mode to apply. See below for details.
|
||||||||||||
column_names | list of str | List of columns on which to apply the filter. Ignored for 'search' mode. | ||||||||||||
options | dict of str | Optional parameters. Default value is an empty dict ( {} ).
|
Output Parameter Description
Name | Type | Description |
---|---|---|
count | long | The number of records that passed the string filter. |