From 671f42f56395744cd6f70ce5e9be2e568a132d3e Mon Sep 17 00:00:00 2001 From: shendiaomo Date: Tue, 22 Oct 2019 17:17:59 +0800 Subject: [PATCH 1/2] Update REPL document --- doc/run/repl.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/run/repl.md b/doc/run/repl.md index 621126949a..078f0d541f 100644 --- a/doc/run/repl.md +++ b/doc/run/repl.md @@ -75,3 +75,12 @@ SELECT * from iris.predict limit 3; ``` Congratulations! Now you have successfully completed a session using SQLFlow syntax to train model using DNNClassifier and make a quick prediction. + +## REPL Command Line Options + +| Option | Description | +|-----------------------------------------|-------------| +| -e \ | Execute from command line without entering interactive mode. e.g.
`-e "SELECT * FROM iris.train TRAIN DNNClassifier..." `
does the same thing as the training example above.| +| -f \ | Execute from file without entering interactive mode. e.g.
`-f ./my_sqlflow.sql`
does the same thing as
`< ./my_sqlflow.sql` and `cat ./my_sqlflow.sql \| REPL...` | +| -model_dir \ | Save model to a local directory. e.g. `-model_dir "./models/"` | +| -datasource \ | Connect to the specified database. e.g. `-datasource "mysql://root:root@tcp(host.docker.internal:3306)/" ` | From 7d58b96b7759f270409cd03fda3d465a57807ada Mon Sep 17 00:00:00 2001 From: shendiaomo Date: Wed, 23 Oct 2019 01:45:27 +0800 Subject: [PATCH 2/2] Use relative link to fix 404 in http://sqlflow.org/sqlflow/doc/quick_start/ --- doc/quick_start.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/quick_start.md b/doc/quick_start.md index a33ca63a21..0f833c4bcc 100644 --- a/doc/quick_start.md +++ b/doc/quick_start.md @@ -10,8 +10,8 @@ It's quite simple to try out SQLFlow using [Docker](https://docs.docker.com/). For advanced usage, you might want to go on reading -- [Language Guide](/doc/language_guide.md) -- [Run Locally with Docker](/doc/run/docker.md) -- [Run on Google Cloud](/doc/run/gcp.md) -- [Run on Kubernetes](/doc/run/kubernetes.md) -- [Run in REPL Mode](/doc/run/repl.md) +- [Language Guide](language_guide.md) +- [Run Locally with Docker](run/docker.md) +- [Run on Google Cloud](run/gcp.md) +- [Run on Kubernetes](run/kubernetes.md) +- [Run in REPL Mode](run/repl.md)