If you are keen on virtualization and you have Docker Engine installed on your machine, you can also pull SQLFlow's docker image. However, do please note that:
The SQLFlow docker version is for testing purposes only
After getting the SQLFlow docker version installed, contact support@gudusoft.com with your SQLFlow Id to obtain a 1-month temporary license.
The docker version uses the same user management logic as SQLFlow On-Premise. It has the admin account and the basic account.
The 7090 in the above command will be the port to visit SQLFlow UI. You can change the port if 7090 is occupied in your machine.
The mysqlflow is the name of the container. For more information of the container creation, you can check the official Docker Doc.
Use http://<your ip>:<port> to reach sqlflow UI.
Invoke the SQLFlow API from Docker Container
The SQLFlow API will be available once you have uploaded the license file and get the docker container up running.
There's no difference between invoking SQLFlow API from your docker container and from SQLFlow Cloud/On-Premise. Please check our python demo if you need any samples:
Following are some samples to invoke the SQLFlow API from the docker container in Python:
# the user id of sqlflow web or client, required trueuserId =''# the secret key of sqlflow user for webapi request, required truescrectKey =''# sqlflow server, For the cloud version, the value is https://api.gudusoft.comserver ='http://127.0.0.1'# sqlflow api port, For the cloud version, the value is 443port ='8165'# For the cloud version# server = 'https://api.gudusoft.com'# port = '443'# The token is generated from userid and usersecret. It is used in every Api invocation.token = GenerateToken.getToken(userId, server, port, screctKey)# delimiter of the values in CSV, default would be ',' stringdelimiter =','# export_include_table, stringexport_include_table =''# showConstantTable, booleanshowConstantTable ='true'# Whether treat the arguments in COUNT function as direct Dataflow, booleantreatArgumentsInCountFunctionAsDirectDataflow =''# database type,# dbvazuresql# dbvbigquery# dbvcouchbase# dbvdb2# dbvgreenplum# dbvhana# dbvhive# dbvimpala# dbvinformix# dbvmdx# dbvmysql# dbvnetezza# dbvopenedge# dbvoracle# dbvpostgresql# dbvredshift# dbvsnowflake# dbvmssql# dbvsparksql# dbvsybase# dbvteradata# dbvverticadbvendor ='dbvoracle'# sql text# sqltext = 'select * from table'# data = GenerateLineageParam.buildSqltextParam(userId, token, delimiter, export_include_table, showConstantTable, treatArgumentsInCountFunctionAsDirectDataflow, dbvendor, sqltext)# resp = getResult(server, port, data, '')# sql filesqlfile ='test.sql'