Commit Graph

832 Commits

Author SHA1 Message Date
Peinthor Rene
97e2025cc9 cvsparser: Newly implemented CSV Parser
Moved parser into it's own class
This parser now proper supports new lines in quoted text
and returns a QVector<QStringList> result.
2014-09-02 18:05:04 +02:00
Justin Clift
1430033767 Updated currentrelease file to 3.3.1 2014-08-31 17:09:13 +01:00
Justin Clift
c8a73316cc Fixed incorrect date for 3.3.1 release.
Braino. :/
2014-08-31 16:43:07 +01:00
Justin Clift
9dc8e96e3c Updated README with v3.3.1 release date 2014-08-31 16:28:42 +01:00
Peinthor Rene
34e274ee3c cmake/nsis: small improvements to the windows installer 2014-08-31 16:23:17 +02:00
Martin Kleusberg
b87992c8fb Clean up the DBBrowserDB class a bit 2014-08-31 16:10:01 +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
cf62b78a1e Grammar: 'NOT' is not a valid column name 2014-08-31 12:30:37 +02:00
Martin Kleusberg
9b8a2e09ae Merge pull request #82 from manisandro/test_fixes
Test fixes
2014-08-31 12:19:42 +02:00
Martin Kleusberg
e27d1b9956 Merge pull request #83 from justinclift/project_rename
Renamed application to Database Browser for SQLite
2014-08-28 16:08:21 +02:00
Justin Clift
d39ba2947b Renamed application to Database Browser for SQLite
Hopefully this will reduce the misdirected support calls to Hwaci :)
2014-08-27 23:14:16 +01:00
Sandro Mani
27b6bef37d Fix bad test 2014-08-27 19:04:38 +02:00
Sandro Mani
6b4d079e6a Fix syntax issues 2014-08-27 19:04:35 +02:00
Martin Kleusberg
ba9931ac7f EditTableDialog: Add without rowid checkbox
Add a checkbox for setting the 'WITHOUT rowid' flag in the
EditTableDialog. All functionality concerning the checkbox is
implemented by this commit with one exception: Setting/unsetting the
flag on an existing table won't perform any changes yet.

See issue #51.
2014-08-27 18:50:55 +02:00
Martin Kleusberg
c7de94cb77 Make it possible to add rows to a WITHOUT rowid table
This commit allows you to add new rows to a table without rowid column.
The main problem here is that SQLite won't create the next value for the
primary key column itself, so we have to do that instead.

See issue #51.
2014-08-26 18:38:04 +02:00
Martin Kleusberg
e37df8658c Improve support for 'WITHOUT rowid' tables
This adds support for editing and deleting rows from tables without
rowid. It also fixes a check in the EditTableDialog when activating the
not null constraint as well as making some progress when it comes to
adding new rows.

Also see issue #51.
2014-08-26 17:58:33 +02:00
Martin Kleusberg
7d4248ecb4 Keep field information in sqlb::Table object rather than DBBrowserObject
Keep all the table and field information in a sqlb::Table object (which
itself is stored in DBBrowserObject) rather than storing field
information in DBBrowserObject and sqlb::Table objects at the same time.
2014-08-26 17:52:15 +02:00
Peinthor Rene
d076134513 refer to release 3.3.0 2014-08-25 08:40:32 +02:00
Justin Clift
53b39f0273 Added v3.3.0 release info to README.md 2014-08-25 01:58:24 +01:00
Justin Clift
a4c8209808 Update the internal OSX .app package number to 3.3.99 2014-08-24 18:38:00 +01:00
Peinthor Rene
63c338c359 plot: add another shortcut to plot CTRL+D
if we maybe have print support in the future,
we can assign CTRL+P to print than
2014-08-24 16:58:13 +02:00
Peinthor Rene
681b143649 dbschema: shortcut for schema pane 2014-08-24 16:50:41 +02:00
Martin Kleusberg
44ce30dacc Fix last commit
Fix missing rowid->_rowid_ in commit55678bb9450a0546835b2d86f5124e7efb0a1109
2014-08-23 12:11:48 +02:00
Peinthor Rene
55678bb945 sql: use _rowid_ instead of rowid
This doesn't really solve the problem, but reduces the chance
to have a nameclash with rowid, until we come up with something better
we can't fully support tables with a column name _rowid_ but that should
be very seldom
2014-08-22 23:21:44 +02:00
Peinthor Rene
3b907df8e3 tablemodel: fix crash if rowdata couldn't be fetched 2014-08-22 23:13:39 +02:00
Martin Kleusberg
beae69296c MainWindow: Add new dock showing the DB schema
See issue #75.
2014-08-22 15:05:23 +02:00
Martin Kleusberg
547a4d87a7 MainWindow: Change window title of toolbar from "toolBar" to "DB Toolbar"
Change the window title of the toolbar to the same name it has in the
View menu as the window title actually is visible in the UI when right
clicking on the toolbar or menu.
2014-08-22 14:45:14 +02:00
Martin Kleusberg
a3affde782 Make sure columns in the Execute SQL area don't get too big by default
When running a SQL statement the column widths of the result table view
are set to fit their contents automatically. However, for very long
values this makes the table hard to navigate. This is why this commit
introduces a maximum column width while still trying to fit each column
to its contents.

See issue #79, point 2.
2014-08-22 14:27:54 +02:00
Martin Kleusberg
cbc324b205 Grammar: Allow rowid as column name
This fixes #80.
2014-08-22 14:10:19 +02:00
Martin Kleusberg
51014a7ddc Grammar: Allow key as column name 2014-08-22 14:07:05 +02:00
Peinthor Rene
9aa73915c3 sqliteparsing: add a flag to indicate if we support modifying in our dlg
This flag should indicate if we can fully handle this table definition
in our edit table dialog. if not we should do one of these things:
* disable the edit table dialog to modify the table
* display a warning message that modifying this table may remove constraints
* ??
2014-08-18 19:41:49 +02:00
Peinthor Rene
aff96bf709 grammar: remove trailing WS 2014-08-18 19:17:24 +02:00
Peinthor Rene
6d47c749f8 grammar: proper support the index_column rule 2014-08-18 19:16:45 +02:00
Peinthor Rene
2cadb38719 tablemodel: if our sql parser failed get column names from sqlite
This makes browsing more robust if our sqlite parser fails
we will fallback to a sqlite query to retrieve the column names
2014-08-18 18:53:16 +02:00
Peinthor Rene
e9fc2229c2 grammar: disable antlr's default error handling
We(I) did not count on that behavior anyway and this should have never
been in place
2014-08-18 18:47:35 +02:00
Peinthor Rene
bd11193235 sqlitetypes: avoid copy of member 2014-08-18 18:40:10 +02:00
Peinthor Rene
32ef063d11 sqlite3: workaround to prevent creating 0 byte sqlite3 database files 2014-08-17 13:05:49 +02:00
Peinthor Rene
9fdc71be2c grammar: fix crash and autoincrement in primary key table_constraints 2014-08-17 12:55:22 +02:00
Martin Kleusberg
abe622ebf4 EditTableDialog: Reload the current DB schema when cancelling
All the editing in the EditTableDialog, that is the DBBrowserDB class to
be specific, messes up the current representation of the DB schema. This
is fine when the changes are actually committed by clicking the OK
button but causes confusion when the dialog is cancelled. None of the
changes are actually written to the database but the UI looks like they
are.

This closes issue #74.
2014-08-15 22:54:36 +02:00
Martin Kleusberg
b754284073 Grammar: Show antlr error message where possible
When catching an exception thrown by antlr print all the information
which has been provided.
2014-08-15 12:23:51 +02:00
Peinthor Rene
cf0213cd7e sqlitemodel: fix endless loop if offset is used in LIMIT 2014-08-13 12:11:03 +02:00
Peinthor Rene
58867aa181 edittable: update comment 2014-08-07 23:17:42 +02:00
Peinthor Rene
ff50a94eef edittable: add ability to set the unique constraint on a table 2014-08-07 23:15:38 +02:00
Peinthor Rene
f291f89a93 sqlitetypes: extract unique information of columns 2014-08-07 23:14:21 +02:00
Justin Clift
b355005b89 Update 3.0.1 version number with 999.0.0 placeholder
As suggested by Martin here: https://github.com/sqlitebrowser/sqlitebrowser/pull/71/files#r15728485
2014-08-03 12:32:11 +01:00
Martin Kleusberg
610d9071b1 Merge pull request #71 from elfring/Complete_quoting_for_parameters_of_some_CMake_commands
Complete quoting for parameters of some CMake commands.
2014-08-02 12:19:02 +02:00
Tim Brust
2e5405a60b Update BUILDING.md by specifing path for cmake
Being in the root directory cmake needed a path for the CMakeLists.txt - otherwise cmake won't run
2014-08-01 17:05:04 +01:00
Markus Elfring
d3ccdc2cdd Bug #58: Completed quoting for parameters of some CMake commands
A wiki article pointed out that whitespace will only be preserved for parameters
in CMake commands if passed strings will be appropriately quoted or escaped.
http://cmake.org/Wiki/CMake/Language_Syntax#CMake_splits_arguments_unless_you_use_quotation_marks_or_escapes.

Quoting was added so that more places should also handle file names correctly
which contain space characters or semicolons eventually.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2014-08-01 15:49:11 +02:00
Martin Kleusberg
86797591ec Fix issue introduced in ba75bd16fe 2014-08-01 11:21:47 +02:00
Justin Clift
135349af15 Adjust the message about quote character in path on OSX 2014-07-31 21:51:48 +01:00