Generation Interface
https://github.com/sqlparser/sqlflow_public/tree/master/api
Last updated
https://github.com/sqlparser/sqlflow_public/tree/master/api
Last updated
Generate sqlflow model
Export lineage as CSV
Send the SQL query and get the data lineage result.
SQLFlow Cloud Server
SQLFlow on-premise version
Send the SQL file and get the csv result which includes the data lineage.
Sample:
Note:
-H "Content-Type:multipart/form-data" is required.
Add @ before the upload file path
--output is required.
Optional, if you just want to fetch table to table relations, please add -F "tableToTable=true"
Send the SQL file and get the image result of the data lineage.
Sample result:
generate sqlflow model
/sqlflow/generation/sqlflow
database vendor
dbvazuresql
, dbvbigquery
, dbvcouchbase
, dbvdb2
, dbvgreenplum
, dbvhana
, dbvhive
, dbvimpala
, dbvinformix
, dbvmdx
, dbvmysql
, dbvnetezza
, dbvopenedge
, dbvoracle
, dbvpostgresql
, dbvredshift
, dbvsnowflake
, dbvmssql
, dbvsparksql
, dbvsybase
, dbvteradata
, dbvvertica
simple output, ignore the intermediate results, defualt is false.
false
same as simpleOutput, but will keep output of the top level select list, default is false.
false
give the job Id if need to use the job settings and display the job graph
whether normalize the Identifier
whether return full data relationship. will return only summary info if set to false in case of exceeding the relation limit.
whether show constant table
show relation type, required false, default value is 'fdd', multiple values seperated by comma like fdd,frd,fdr,join. Availables are 'fdd' value of target column from source column, 'frd' the recordset count of target column which is affected by value of source column, 'fdr' value of target column which is affected by the recordset count of source column, 'join' combines rows from two or more tables, based on a related column between them
whether show transform
sql text from which to generate the sqlflow model
The token is generated from userid and usersecret. It is used in every Api invocation.
Whether treat the arguments in COUNT function as direct Dataflow
the user id of sqlflow web or client
sql file from which to generate the sqlflow model
export sqlflow full lineage as csv format
/sqlflow/generation/sqlflow/exportFullLineageAsCsv
db vendor
dbvazuresql
, dbvbigquery
, dbvcouchbase
, dbvdb2
, dbvgreenplum
, dbvhana
, dbvhive
, dbvimpala
, dbvinformix
, dbvmdx
, dbvmysql
, dbvnetezza
, dbvopenedge
, dbvoracle
, dbvpostgresql
, dbvredshift
, dbvsnowflake
, dbvmssql
, dbvsparksql
, dbvsybase
, dbvteradata
, dbvvertica
delimiter of the values in CSV, default would be ','
export_include_table
sessionId
showConstantTable
sql text
The token is generated from userid and usersecret. It is used in every Api invocation.
Whether treat the arguments in COUNT function as direct Dataflow
user id
sqlfile
generate sqlflow graph image
/sqlflow/generation/sqlflow/graph/image
columnLevel
database vendor
dbvazuresql
, dbvbigquery
, dbvcouchbase
, dbvdb2
, dbvgreenplum
, dbvhana
, dbvhive
, dbvimpala
, dbvinformix
, dbvmdx
, dbvmysql
, dbvnetezza
, dbvopenedge
, dbvoracle
, dbvpostgresql
, dbvredshift
, dbvsnowflake
, dbvmssql
, dbvsparksql
, dbvsybase
, dbvteradata
, dbvvertica
whether hide column
false
ignore function
false
simple output, ignore the intermediate results, defualt is false.
false
same as simpleOutput, but will keep output of the top level select list, default is false.
false
give the job Id if need to use the job settings and display the job graph
whether normalize the Identifier
whether show constant table
whether show link only
show relation type, required false, default value is 'fdd', multiple values seperated by comma like fdd,frd,fdr,join. Availables are 'fdd' value of target column from source column, 'frd' the recordset count of target column which is affected by value of source column, 'fdr' value of target column which is affected by the recordset count of source column, 'join' combines rows from two or more tables, based on a related column between them
whether show transform
sql text from which to generate the sqlflow model
The token is generated from userid and usersecret. It is used in every Api invocation.
Whether treat the arguments in COUNT function as direct Dataflow
the user id of sqlflow web or client
sqlfile