Skip to main content
execute(sql, sql_params=[], sql_opts=)[source]

Execute a SQL query and return the row count.

Parameters

sql (str) –

The SQL to execute

sql_params (list of native types) –

The SQL parameters that will be substituted for tokens (e.g. 11 2)

sql_opts (dict) –

The options for SQL execution, matching the options passed to GPUdb.execute_sql(). Defaults to None.

Returns

Number of records affected