Heka Redshift PSV (pipe separated values) Helper Functions
1. Functions
1.1. esc_varchar
Arguments
- v (string) - string to escape
- max (integer) - maximum string length (truncate if longer)
Return
- VARCHAR (string)
1.2. get_create_table_sql
Arguments
- name (string) - database table name
- schema (table) - schema table
Return
- sql (string) - SQL create table statement
1.3. write_message
Apply the schema and write the formatted message to disk.
Arguments
- fh (userdata) - file handle
- schema (table) - schema table
Return
- none
source code: psv.lua