Skip to content

Commit 01fda15

Browse files
author
Jeff McCormick
committed
add pgo load docs
1 parent cfea233 commit 01fda15

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/user-guide.asciidoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,23 @@ pgo label --label=env=research  --selector=project=xray
459459
In this example, we apply a label of *env=research* to any
460460
clusters that have an existing label of *project=xray* applied.
461461

462+
== Data Loading
463+
464+
A CSV file loading capability is supported currently. You can
465+
test that by creating a SQL Policy which will create a database
466+
table that will be loaded with the CSV data. For example:
467+
468+
....
469+
pgo create policy xrayapp --in-file=$COROOT/examples/policy/xrayapp.sql
470+
....
471+
472+
Then you can load a sample CSV file into a database as follows:
473+
474+
....
475+
pgo load --load-config=$COROOT/examples/sample-load-config.json --selector=name=mycluster
476+
....
477+
478+
The loading is based on a load definition found in the *sample-load-config.json* file. In that file, the data to be loaded is specified. When the *pgo load* command is executed, Jobs will be created to perform the loading for each cluster that matches the selector filter.
462479

463480
== bash Completion
464481

0 commit comments

Comments
 (0)