Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
curl -u user:passwd [-H sql:${load_sql}...] -T data.file -XPUT http://load_host:http_port/api/http_load


# -- load_sql
# INSERT INTO db.table 
# (
#     col, ...
# ) 
# SELECT 
#     col, ... 
# FROM http_loadread_files("file:///data.file") 
# with
# (
#    "column_separator" = ",",
#    "format" = "csv"
# );

...