Commit Graph

15 Commits

Author SHA1 Message Date
Martin Kleusberg
5a1d338647 Allow specifying an ON CONFLICT strategy in the Import CSV dialog
Add a new dropdown box to the Import CSV dialog to set an ON CONFLICT
strategy when importing into an existing table. You can now choose
between the old and still default behaviour of aborting the import in
case of a conflict, ignoring the conflicting row from the CSV file, and
replacing the existing row in the table.

See issue #1585.
2018-10-24 13:38:28 +02:00
Martin Kleusberg
3995ad2442 Add option to disable automatic type detection in CSV import
Because there are some circumstances under which the automatic type
detection can cause problems with the imported data and because it is
not accurate when the data changes a lot after the first couple of rows,
we need an option to disable it.

See issue #1382.
2018-05-25 22:11:43 +02:00
Martin Kleusberg
e851c161d6 Implement better default behaviour for CSV import
This changes the default behaviour for the CSV import to follow a set of
rules which hopefully makes most people happy.

It also add an "Advanced" section to the settings bits of the dialog to
modify this new default behaviour.

See issue #1395.
2018-05-25 21:06:16 +02:00
Remi Rampin
17f1eabb65 Import CSV: Add option to insert missing values as NULL (#1349)
* Add a combo box for missing values in import ui

* Add ui pieces to .cpp file

* Insert NULL values if requested

* Allow inserting NULLs in new table also
2018-05-22 20:56:11 +02:00
Martin Kleusberg
263f075d8d Add splitter to the Import CSV dialog
This adds a splitter between the CSV file list and the file preview in
the Import CSV dialog.

See issue #1072.
2017-09-27 21:27:34 +02:00
iKlsR
a588fb83d1 Edit widget tab order 2017-06-16 17:35:36 +02:00
iKlsR
225eb5ab5f Allow matching similar csv files for batch import 2017-06-16 17:35:36 +02:00
iKlsR
b0eb9acae2 Allow for interactive CSV file import
- Tweak input checker
- Preserve old file import as not to cause any unforeseen breaks
- Allow ignoring file name when importing multiple files to tables
- Mass toggle several files for import
2017-06-16 17:35:36 +02:00
Chris Locke
fd7cd1e2de Tab order changes in dialogs (#676)
All dialogs have had their tab order verified to ensure controls flow
'correctly'.
2016-07-26 17:45:48 +01:00
Peinthor Rene
90b40568b6 importcsv: update preview if trim fields was toggled 2014-09-05 13:04:15 +02:00
Peinthor Rene
9bef8a8f58 importcsv: Save last used settings and add a trim fields option 2014-09-03 08:28:30 +02:00
Martin Kleusberg
03879d93f0 ImportCsvDialog: Allow other file encoding than UTF-8
Add a combobox and a text field for choosing a different encoding of the
input file than the default UTF-8.
2014-08-31 13:10:25 +02:00
Martin Kleusberg
55435e2703 ImportCsvDialog: Add options to define custom quote/separator chars
Make it possible to use other quote and separator characters than those
predefined in the respective combo boxes when importing a CSV file.

See issue #23.
2014-05-30 17:54:13 +02:00
Martin Kleusberg
a6fdb49aa0 CSV import/export: Add pipe character as possible field separator 2014-05-24 19:28:08 +02:00
Martin Kleusberg
8115727e75 Rewrite the Import CSV Dialog using Qt Creator
Rewrite the dialog to import CSV files using a Qt Creator form file.

Simplify the CSV import a little bit.

A bit unrelated, but needed for this anyway:
Create the restorepoint right after opening a database file instead of
just doing so after the first change.
2013-01-18 14:45:22 +01:00