Commit Graph

445 Commits

Author SHA1 Message Date
Peinthor Rene
a95d33e5ee add unittest for foreign key parser problem 2013-05-03 21:12:56 +02:00
Peinthor Rene
0861f51897 updated sqlite parser 2013-05-03 21:11:21 +02:00
Peinthor Rene
32ba32bbae add missing tokens
I hope I got all now
2013-05-03 21:10:10 +02:00
Martin Kleusberg
33d3dcdc16 Fix extension loading 2013-05-03 16:11:35 +02:00
Martin Kleusberg
93ebc68436 Update README 2013-05-03 16:04:09 +02:00
Martin Kleusberg
2d8cad27eb PreferencesDialog: Add new tab for extension loading
Add new settings to preferences dialog for automated loading of
extensions for all databases.
2013-05-03 16:01:52 +02:00
Martin Kleusberg
e36b17a485 Add support for SQLite extension loading
Enable the extension support in SQLite.

Add code to allow loading of extension.

Add menu entry for easy extension loading.
2013-05-03 15:26:34 +02:00
Martin Kleusberg
a031386edd Fix filter row SQL generation to always produce correct SQL statements
Always produce correct SQL statements, even when using an incomplete
comparison operator.

Fix escaping to make it possible to search for '-charachters.
2013-05-03 13:34:26 +02:00
Martin Kleusberg
9d8cfaa8cf Remove filter row when closing database file
Remove the filter row in the browse tab when closing the database.
Before this it would remain visible leading to a crash when using it.
2013-05-03 13:20:20 +02:00
Martin Kleusberg
971a4051db Update README 2013-05-03 12:17:46 +02:00
Martin Kleusberg
d52a6be86f Add buttons to open and save SQL files to SQL tab in main window 2013-05-03 12:13:17 +02:00
Martin Kleusberg
57b44b891d Add auto completion in SQL editor again 2013-05-03 11:47:53 +02:00
Martin Kleusberg
23d929ec0e First version of multiple SQL scripts support in main window
Allow multiple SQL scripts in different tabs in the SQL tab of the main
window.

Auto completion support is still missing, the rest is working fine.
2013-05-02 21:15:23 +02:00
Martin Kleusberg
909d435ec6 Allow inline editing in browse data tab
Make it possible to edit records directly in the table view without
having to open the edit dialog.
2013-05-02 17:36:16 +02:00
Martin Kleusberg
b3465546bb SqliteTableModel: Remove dependency from PreferencesDialog 2013-04-26 13:55:29 +02:00
Martin Kleusberg
7799ef1865 Make number of rows to prefetch when doing lazy population configuarable
Add a new option to the settings dialog to allow changing the number of
rows to get at a time.
2013-04-24 20:25:36 +02:00
Martin Kleusberg
3d5d7fabe0 Simplify version.sh script
The else branch is not needed - and the variable name in it is
misspelled anyway ;)
2013-04-21 12:41:54 +02:00
Peinthor Rene
a1d4b6a38e belongs to previous commit, my --amend failed 2013-04-20 17:25:53 +02:00
Peinthor Rene
6075f1d464 set lib paths correctly for windows 2013-04-20 17:23:42 +02:00
Peinthor Rene
e67260df03 fix possible error if gen_versions.h does not exists, happens on my msys 2013-04-20 17:13:29 +02:00
Martin Kleusberg
768ae28548 Exit in DB create script when there was no file name specified
Make sure the script exits in a clean way when no output file was
specified.

Also some more random cleaning in SqliteDB here...
2013-04-19 20:12:35 +02:00
Martin Kleusberg
b9d0497c99 More cleanup in SqliteDB 2013-04-19 20:00:59 +02:00
Martin Kleusberg
b4a64d6208 Clean up SQLiteDB
Much of the code in there is not really needed anymore as quite a bit of
functionality has been moved to the SqliteTableModel.
2013-04-19 19:54:26 +02:00
Martin Kleusberg
17eaed8ebc Remove some TODO notes
Remove two TODO notes as they have been dealt with by now.
2013-04-19 19:40:06 +02:00
Martin Kleusberg
bb59b398fa Update recordset label when changing the filters 2013-04-19 19:39:00 +02:00
Martin Kleusberg
69a6685eaa Improve version.sh script
Before making any changes to the gen_version.h file check if the number
of the last git commit actually changed. If not don't touch the file.

Enable the version.sh script also for debug mode. With the above change
the program is not compiled and linked every time again, so there's no
reason to not run this. This also fixes a build error for those people
just checking out the repository and doing a debug build.
2013-04-19 16:22:38 +02:00
Martin Kleusberg
e871ecc777 Add antlr directory to linker path to fix a linker error 2013-04-19 16:21:15 +02:00
Peinthor Rene
441d4e79b7 improve the way the git hash is included in the binary
should be better for use of ccache and so on
2013-04-19 11:54:25 +02:00
Peinthor Rene
0f24972a2c update gitignore 2013-04-19 06:37:26 +02:00
Peinthor Rene
e3d20ee434 cleanup and improve qmake build files 2013-04-19 06:30:06 +02:00
Peinthor Rene
267d450805 don't force release target on antlr, it is release by default anyway 2013-04-18 19:01:08 +02:00
Martin Kleusberg
214a56d916 Partially revert 7073230 to fix filter row 2013-04-17 22:06:14 +02:00
Martin Kleusberg
e057f97773 ExtendedTableWidget: Fix jumpy scrolling
Fix wrong scrolling behaviour that ocurred when going to the very bottom
of the table and scrolling up slowly.
2013-04-17 20:26:55 +02:00
Peinthor Rene
c0441dcd97 Revert "don't canFetchMore on our own"
This reverts commit b9af3706e7.

As explained MKleusberg, this might be needed, and this practise
is also used by Qt itself.
2013-04-16 19:57:03 +02:00
Peinthor Rene
a7fd9f600e insert tables/views sorted in browse combobox 2013-04-16 17:24:32 +02:00
Peinthor Rene
a2b3a57ddd use new SqliteTableModel with the executequery tab 2013-04-15 17:46:29 +02:00
Peinthor Rene
707323067d get setQuery without setTable working again 2013-04-15 17:45:41 +02:00
Peinthor Rene
e2d75ff1cf add a check for valid querys 2013-04-15 17:35:28 +02:00
Peinthor Rene
b9af3706e7 don't canFetchMore on our own
This is called by Qt itself before showing more data.
2013-04-15 06:34:33 +02:00
Peinthor Rene
24c45c5695 Merge branch 'partial-data-fetch' 2013-04-14 21:43:54 +02:00
Peinthor Rene
ce4a93ea1f set override cursor if selecting a line 2013-04-14 21:41:48 +02:00
Peinthor Rene
6f3f21fbd7 increase default chunk size
this speeds up going to record 900000 significantly
2013-04-14 21:37:38 +02:00
Martin Kleusberg
49239dad1f ExtendedTableWidget: Make scrolling less awkward with lazy population
Improve the lazy population fatchData() calls when using the vertical
scrollbar to make scrolling a lot smoother. Still not perfect but
definitely a lot better than before.
2013-04-11 17:45:14 +02:00
Martin Kleusberg
ae6e452f36 SqliteTableModel: Notify view and parent class code when clearing cache
Call beginRemoveRows() and endRemoveRows() when emptying the cache. This
silences those warnings from QAbstractItemModel::endInsertRows() and
fixes a crash when exiting the program both ocurring when the data was
resorted.
2013-04-11 16:00:54 +02:00
Martin Kleusberg
7145872f66 SqliteTableModel: Fix wrong LIMIT value in fetchData() 2013-04-11 14:23:30 +02:00
Martin Kleusberg
c7e6684fc4 SqliteTableModel: Allow data() and setData() on rows not cached yet 2013-04-11 14:08:59 +02:00
Martin Kleusberg
f73e3f0546 SqliteTableModel: Fix really stupid bug in insertRows() and removeRows() 2013-04-10 20:44:00 +02:00
Martin Kleusberg
e5013da153 Update README 2013-04-10 19:28:48 +02:00
Martin Kleusberg
334cc26c57 SqliteTableModel: Speed up on large table in certain circumstances 2013-04-10 19:27:16 +02:00
Martin Kleusberg
1ba3169428 Fix CSV export to work with SqliteTableModel 2013-04-10 18:59:37 +02:00