Widget API Reference
set the type of database vendor, Vendor is an enum type.
type Vendor =
| 'athena'
| 'azuresql'
| 'bigquery'
| 'couchbase'
| 'db2'
| 'greenplum'
| 'hana'
| 'hive'
| 'impala'
| 'informix'
| 'mdx'
| 'mysql'
| 'netezza'
| 'openedge'
| 'oracle'
| 'postgresql'
| 'presto'
| 'redshift'
| 'snowflake'
| 'sparksql'
| 'mssql'
| 'sybase'
| 'teradata'
| 'vertica';
return the current database vendor.
set the input sql query that need to be processed.
Return the current SQL query text.
Show the diagram related to current input SQL.
Show the diagram of a specific job. if the job id is omitted, show the diagram of the top job, if no top job is found, show the diagram of latest job.
Show the lineage diagram of a specific table/column.
job.lineage.viewDetailById
must be called first before calling this function, and this function can be called multiple times to return diagram for different table/columns.Add an event listner.
Callback:(data) => any
This event fired when the column in the diagram is clicked.
data:
Attribute | Type | Comment |
---|---|---|
database | string | undefined | name |
schema | string | undefined | name |
table | string | undefined | name |
column | string | name |
Remove a event listner.
Remove all event listners.
Last modified 6mo ago