-
Notifications
You must be signed in to change notification settings - Fork 259
CSV import options for DELIMITER, NULL, and QUOTE #256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
38e3258
062a6ec
f7d7b9f
0110e59
14069d8
9b4f431
95f98b8
9c638a7
7d8171f
31b8916
5166a80
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| #ifndef SQLPARSER_CSV_IMPORT_EXPORT_OPTIONS_H | ||
| #define SQLPARSER_CSV_IMPORT_EXPORT_OPTIONS_H | ||
|
|
||
| namespace hsql { | ||
|
|
||
| struct CsvImportExportOptions { | ||
| CsvImportExportOptions(); | ||
| ~CsvImportExportOptions(); | ||
|
|
||
| char* delimiter; | ||
| char* null; | ||
| char* quote; | ||
| }; | ||
|
|
||
| } // namespace hsql | ||
|
|
||
| #endif | ||
Greenscreen23 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,6 +53,7 @@ | |
| !SELECT * FROM t WHERE a = DATE '2000-01-01' + x DAYS; | ||
| !SELECT * FROM t WHERE a = DATE '2000-01-01' + INTERVAL 'x' DAY; | ||
| !SELECT * FROM t WHERE a = DATE '2000-01-01' + INTERVAL '3.3 DAYS'; | ||
| !COPY students FROM 'file_path' WITH (FORMAT TBL, DELIMITER '|', NULL '', QUOTE '"'); # Cannot have CSV options with non-CSV format | ||
|
||
| # ON is not supported by postgres. We follow postgres here since the sql-92 standard does not specify index | ||
| # implementation details. | ||
| !DROP INDEX myindex ON mytable; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.