Commit Graph

15 Commits

Author SHA1 Message Date
mgrojo
b6f47f91de Use standard SQL quotes for string literals 2018-08-06 19:46:13 +02:00
Martin Kleusberg
514d5b703b Add "Date as dd/mm/yyyy" display format
Also reorganise the format functions to match the order of the dropbox
items.

See issue #1213.
2017-11-18 11:34:49 +01:00
mgrojo
31e499d9fa Retain display formats (#1202)
The Colum Display Format Dialog recognizes now the current format in the
combo instead of falling back to Custom.

The display format items have been reorganized in groups with separators
in between. This is because the strict alphabetical order looses sense in
the translations.
2017-11-02 23:02:55 +01:00
Justin Clift
e0ced4a0fa Rearranged display format list alphabetically
Was starting to look a bit weird otherwise. :)
2017-09-11 13:04:23 +01:00
Grif392
46ec019719 Add Java Epoch format conversion
Java epoch is measured in milliseconds from unix 0; conversion is a
(roundabout, best I could find) way to convert milliseconds into a
SQLite datetime while keeping millisecond resolution.

Easier alternative would be column_name / 1000, but loses _some_
theoretical resolution.
2017-09-11 00:30:23 +02:00
Shane Bielefeld
7e03d67c2b Added a new format for displaying Apple NSDates to the
ColumnDisplayFormatDialog
2016-11-28 17:56:47 -05:00
Martin Kleusberg
b9e4433318 Drop Qt4 support
This commit removes all code and configuration that was required for
building with Qt4. Hopefully noone really needs it anymore.

See issue #603.
2016-10-18 18:07:38 +02:00
jungle-boogie
c5c8106c1c attempt at adding decimal (#569)
* attempt at adding decimal

hopefully a passable attempt to add decimal support per
https://github.com/sqlitebrowser/sqlitebrowser/issues/373#issuecomment-211025161

I re-organized the conversion list, too.

* remove stray line

* correct decimal 

%d is decimal! I won't forget this now.
2016-04-21 17:51:12 +01:00
Carsten Mikkelsen
21c708ab95 Added hex blob format 2016-04-15 18:21:45 +01:00
MyRoGeertGit
76524a4d24 Windows DATE to Date added as display format for Browser Data added. 2016-01-01 16:54:23 +01:00
Martin Kleusberg
f0a9143b3b Change format of hex display format
See issue #373.
2015-12-22 22:51:07 +01:00
Martin Kleusberg
631979c330 Improve escpaing support
When generating SQL statements properly escape all identifiers, even
those containing backticks which apparently are allowed inside
identifiers in SQLite.

See issue #387.
2015-08-17 00:17:48 +02:00
Martin Kleusberg
22e858d1f4 displayformats: Support more formats 2015-07-06 19:16:18 +02:00
Martin Kleusberg
0ca3319cb2 Fix Qt4 build 2015-07-06 19:02:33 +02:00
Martin Kleusberg
7c1d237d9b Support alternative display formats in the Browse Data tab
This is a proof-of-concept or even a basic first implementation of a new
feature I'd like to have in DB4S which at the moment I call display
formats.

The idea here is to allow the user to change the data in the Browse Data
tab on a per column basis before displaying it. This means even though
the data is stored in format X in the database it can be shown in format
Y in the browser. This should be useful in cases where the original
format X is hard to read or just not useful in a particular case.

This first implementation allows the user to right click on the header
of a column and open a new dialog for setting the display format which
offers a (limited) list of pre-defined formats. The selected format is
then integrated into the SELECT statement which is sent to SQLite.

While it works, this draft implementation lacks a number of features.
Here are the most prominent ones I'm currently aware of:
* Data not editable (or only via the Edit Dialog) because it isn't
  transformed back yet.
* More display formats needed; maybe customizable ones, too.
* No indication in the UI for which columns a format has been set.
* Could _maybe_ be integrated into the import/export etc. for optional
  use.
2015-07-06 18:28:30 +02:00