Publish (Table)

analyze.publish.create(project_id, sql, name)

Publishes a specified SQL query as a reporting view

Parameters
  • project_id (str) – Unique project identifier

  • sql (str) – The SQL query to use to create the view

  • name (str) – The object name

Returns

None

analyze.publish.delete(project_id, table_id, name, branch='master')

Deletes a reporting view

Parameters
  • project_id (str) – Unique project identifier

  • table_id (str) – The table the reporting view is defined on

  • name (str) – The object name

  • branch (str, optional) – Which branch to operate on

Returns

None

analyze.publish.table(project_id, table_id, name, branch='master')

Publishes a complete table as a reporting view

Parameters
  • project_id (str) – Unique project identifier

  • table_id (str) – Unique table identifier

  • name (str) – The object name

  • branch (str, optional) – Git branch to operate on

Returns

None

analyze.publish.update(project_id, name, new_name, branch='master')

Updates the name of a reporting view

Parameters
  • project_id (str) – Unique project identifier

  • table_id (str) – What table this reporting view is defined on

  • name (str) – The object name

  • new_name (str) – What to update the name to

  • branch (str, optional) – Which branch to operate on

Returns

None