Skip to content

add "rds_csv_quote_string" command #3

Description

@lloydzhou

can add one command to control this module to quote the string field or not.
so if using this command and command "rds_csv_field_name_header", we can server binary data from RDS upstream (eg: image).

location ~ '/cats/image/([0-9]+)' {
    drizzle_query 'select img from cat_image where id=$1 limit 1';
    drizzle_pass backend;
    rds_csv on;
    rds_csv_quote_string off;
    rds_csv_field_name_header off;
    rds_csv_content_type 'image/jpeg';
}

i have write simple code on the fork lloydzhou@5c26493.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions