Commit Graph

94 Commits (master)

Author SHA1 Message Date
Timothy Stack e85fff0b88 [sql] add json_concat() function and misc fixes 4 years ago
Timothy Stack 8413dd13d8 [config] add configs directory 4 years ago
Timothy Stack 0918063640 [cleanup] some modernization 5 years ago
Timothy Stack fb7d6eafaf [build] some refactoring of files 5 years ago
Timothy Stack 062d480fea [sql] fix some issues found while trying to query some logs 5 years ago
Timothy Stack 2345a32423 [filter] add panel that shows the set of filters
Initial version, still needs some cleanup
6 years ago
Timothy Stack 6bfd158e49 [logline] check for SQL keywords in column names 6 years ago
Timothy Stack 4ccae48aea [bookmarks] add support for tags and comments for log lines
Initial work for #446 and #447
  TODO: filtering on tags/comments

Also did a bunch of clang-tidy cleanups and improvements to
the online help.
6 years ago
Timothy Stack af36896f50 [sanitize] some fixes for issues found in the address sanitizer 6 years ago
Phil Hord eee7d0ddfc Squash a bunch of signed/unsigned warnings 6 years ago
Timothy Stack 8ea51a6fd8 [formats] support for CSV/TSV log formats
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 3e97c737c1 [jsonlog] fix some bugs related to json logs 7 years ago
Timothy Stack 78119dc9f1 fixing some minor issues
Fixes #255
7 years ago
Timothy Stack 411ea1fbee [help] show help text for SQL functions
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 8776f6a703 [sql] do some minimal parsing/annotation of SQL statements
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 09111fb3c9 [sql_util] compile to prepared statements
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Tim Stack 91633d089f Merge pull request #320 from sureshsundriyal/db-attach
[secure-mode] Disallow ATTACH statements completely.
8 years ago
Suresh Sundriyal 6663740c5e [secure-mode] Disallow ATTACH statements completely.
The code to handle in-memory db exceptions is hideous and unreliable,
given the fact that SQLite does not expose much in terms of getting the
current value and the methods to check the compile time options can
themselves be disabled by a compile=time option in SQLite.

There really isn't much use for in-memory databases and if someone
really needs it, they can always choose to run in normal mode, so just
remove the extra code.
8 years ago
Timothy Stack fbbedfea48 [build] try to silence some warnings 8 years ago
Suresh Sundriyal a13047a9ed [secure-mode] Check to see if URIs are enabled.
Check to see if URIs are enabled or not before continuing on with the
file uri checks.
8 years ago
Suresh Sundriyal 1e6878164f [secure-mode] Refactoring and check for sqlite version.
'mode=memory' query parameter is only supported from sqlite3 version
3.8.0 onwards. Make sure to check for the version before continuing with
the 'ATTACH' statement.

Turning off some of the tests, since they fail on the Travis CI setup
which uses sqlite version 3.6.0.
8 years ago
Suresh Sundriyal e6c87678e9 [secure-mode] Prevent users from attaching db files.
Prevent the users from attaching an external db file which they may not
have ownership of.

The current authorizer method is hooked in only when the LNAVSECURE
variable is set. This is done deliberately, since the method will be
called on every sqlite query and I did not want to incur a performance
hit.

If the scope of this authorizer increases, we should consider passing in
the lnav_data as pUserData and do the checks inside the authorizer
itself.
8 years ago
Timothy Stack 4f05af6408 [time] add support for TAI64N timestamps
Fixes #300
8 years ago
Timothy Stack 2b2e1c0af9 [sql] add parens to function complete values and do not open empty output files from scripts 8 years ago
Timothy Stack 64cbab1281 [sql] exec .sql files in format dirs 9 years ago
Timothy Stack 9139e6de5b [search-table] guess the column types based on the regex 9 years ago
Timothy Stack 9948eeba77 [build] use isdigit 9 years ago
Timothy Stack 1d0233bbfa [json-format] support for full paths 9 years ago
Timothy Stack 2d23f8e809 [time] use the gmtime from newlib
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack d4bea593b7 [perf] optimize json log loading 10 years ago
Timothy Stack b205a3ec82 [build] some more centos build fixes 10 years ago
Timothy Stack 1974e1f1ae [jsonptr] initial impl 10 years ago
Timothy Stack 87f288d3d0 [build] ifdefs for some sqlite defines 10 years ago
Timothy Stack 87223ed110 [sql] install a sqlite log handler
Fixes #86
10 years ago
Timothy Stack 64fe8175a6 [log] add an internal logger instead of using redirected stderr 10 years ago
Timothy Stack c29d756fd3 [sql] implement the sqlite3 .schema command 10 years ago
Timothy Stack 7958c54fd0 [sql] use the default sqlite datetime format so collating works 10 years ago
Timothy Stack c3d51190c8 [wrap] start support for word wrapping and fix a variety of glitches 11 years ago
Timothy Stack 59c1d4313b [mouse] more mouse support and other fixes 11 years ago
Timothy Stack 8eb4b02f97 [yajlpp] some optimizations for json log parsing 11 years ago
Timothy Stack af3d2a432f [sql] add a logline_datetime function 11 years ago
Timothy Stack 5a7d6dab2c [cleanup] uncrustify 11 years ago
Timothy Stack 5d478fc17a [cleanup] start a tracer/debugger for the data parser 11 years ago
Timothy Stack 5ba3097ee7 [cleanup] move some code around and try to pretty things up a bit 11 years ago