Commit Graph

78 Commits

Author SHA1 Message Date
Evan Miller
c5d4d1d4ee Fix txt2man path 2024-12-26 07:27:34 -05:00
Akkana Peck
7e057e3197
Fix a minor error in the mdb-json man page (#427) 2024-02-17 13:18:12 -05:00
Evan Miller
a44a8ed8ae
Postgres-style ILIKE operator (with Unicode support) (#244)
Access's `LIKE` is actually case-insensitive, but to prevent breaking existing
programs that rely on mdbtools' case-sensitive behavior, introduce a new
`ILIKE` operator to perform a case-insensitive match. Use GLib's `g_utf8_casefold`
to make the comparison UTF-8 aware. A "poor man's" version is implemented
in fakeglib, which relies on `towlower`, and won't work with multi-grapheme
case transformations (e.g. German Eszett).

Fixes #233
2021-08-04 14:45:31 -04:00
Evan Miller
58222eeb35 Don't build/install mdb-sql if SQL is not supported
Eliminates obsolete message about --enable-sql. See #273
2021-03-23 15:53:43 -04:00
Evan Miller
615b625d79 Let LC_COLLATE influence string-comparison operations
By default this will be set to the C locale, but set it to the user's
locale when string comparisons are performed from mdb-sql. Note that
this can be overridden with the LC_COLLATE environment variable.

We could infer the collation locale from the file itself, but this will
likely require a big ball of glue between the Windows locales and Unix
ones.
2021-01-19 21:24:31 -05:00
Evan Miller
f99c5539e7 Add --version option to the CLI tools
See #232
2021-01-19 20:37:25 -05:00
Evan Miller
dbc1aa7ea2 Document TOP and LIMIT clauses in the man page 2021-01-19 16:43:10 -05:00
Evan Miller
8c91654426 Man page and usage updates
* MDBOPTS=no_memo is not used anywhere; mark deprecated and print a
  warning if enabled

* Mark MDBOPTS=use_index as experimental in the man pages

* MDBOPTS need to be colon separated

* Document new long forms of mdb-queries options
2021-01-19 16:27:36 -05:00
Evan Miller
ebb049eb6a Rename --escape-c to --escape-invisible 2020-12-21 09:30:02 -05:00
Evan Miller
8ed9c142a0 Remove copy-paste fragment 2020-12-19 13:26:19 -05:00
Evan Miller
bc97306d64 Merge branch 'master' of github.com:dragonfly-science/mdbtools into merge-108
Merge in pull request #108 with a few changes:

* Use the newer mdb_print_col function

* Redefine the last argument of mdb_print_col to be a flags argument

* Rename and redefine the BINEXPORT enums. While technically public,
  these were never intended as a public API.

* Name the command line option --escape-c
2020-12-19 13:21:32 -05:00
nirgal
cc061732be
Remove obsolete comment 2020-12-13 10:22:17 +00:00
Evan Miller
0444e0a67e Remove out of date documentation
The HTML docs have not been updated in 10+ years. The README and man
pages should suffice for now.
2020-12-04 09:14:12 -05:00
Nirgal Vourgère
fd0fdb6020 Deprecation warning in the manuals 2020-11-25 17:15:31 +01:00
Nirgal Vourgère
c7d527fdeb mdb-export: Rename --backend into --insert 2020-10-25 12:09:51 +01:00
Nirgal Vourgère
ea478f3bc6 mdb-export: reorder options, man, bash-completion 2020-10-25 11:24:28 +01:00
nirgal
9470df473d
Spelling typo 2020-10-24 20:07:21 +00:00
Nirgal Vourgère
7c828bd5ad Manuals: Refreshed the see also paragraph 2020-10-23 12:53:41 +02:00
Nirgal Vourgère
93f109ecb8 Added some manuals, updated AUTHORS 2020-10-21 12:48:20 +02:00
Evan Miller
a5e3e8a438 Include txt2man in distribution 2020-10-18 17:17:58 -04:00
nirgal
738a6e8689
Double \ escape sequence
This fixes groff warnings, as displayed with:
LC_ALL=C.UTF-8 MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l -Tutf8 -Z doc/mdb-export.1  > /dev/null
2020-10-18 11:49:23 +00:00
nirgal
73e0de306d
Add back missing coma 2020-10-18 09:13:14 +00:00
Evan Miller
c19654ad40 Remove gmdb2
Split off the Gnome MDB file viewer into its own project:

    https://github.com/mdbtools/gmdb2

This simplifies the build process somewhat and lets us focus on the core
project. (For starters, no more -Wno-portability flag!)
2020-10-11 14:59:08 -04:00
Evan Miller
01711b49f4 Merge branch 'hexbinaryexportmode' of github.com:davidhicks/mdbtools into export-hex 2020-09-02 09:53:50 -04:00
Evan Miller
d3949f7a0f Include txt2man script (requires gawk) 2020-09-01 20:27:19 -04:00
Evan Miller
0e9c1810f1 Improved support for Access 2010, 2013, and 2016
Some Access 2010 files use 0x03 as the version number rather than
0x0103. For this reason I have changed the call to mdb_get_int32 to
mdb_get_byte.

In addition, according to the Library of Congress page:

https://www.loc.gov/preservation/digital/formats/fdd/fdd000463.shtml

Access 2016 uses 0x05 as the version number. I have inferred from the
Wikipedia page that Access 2013 likely uses 0x04.
2018-03-05 06:39:57 -05:00
Nirgal Vourgère
492df3e927 Spelling fixes
Thanks lintian
2016-10-24 22:54:13 +02:00
Nirgal Vourgère
bd88fb7d43 Use 'official' words for GFDL license 2016-04-27 04:58:17 +02:00
Nirgal Vourgère
13e339c1a4 Clarify usage of --no-comments in mdb-schema 2015-01-12 18:17:50 +01:00
Nirgal Vourgère
072f7c6518 Decrease POSIX required level to 1
One can now compile with CFLAGS="-std=c99 -D_POSIX_C_SOURCE=1 -pedantic"

Trade getopt.h function for glib equivalents:
This mean all utilities now have long option names.
Adjust manuals and bash_completion accordingly.

Added missing manual and bash_completion for mdb-import.
2014-12-29 13:12:23 +01:00
David Hicks
f2890dc1d0 Add hexadecimal binary output conversion option
This commit adds another binary output conversion option to convert
binary blobs into hexadecimal notation, similar to the output of the
following command:
  xxd -p binaryfile.bin | tr -d '\n'

(In other words, a single line string of hexadecimal characters
representing a binary blob)

When exporting SQL INSERT statements for SQLite and PostgreSQL and when
the hexadecimal notation is specified with 'mdb-export -b hex ...',
special consideration is given to ensure that binary blobs are safely
written to the SQLite or PostgreSQL database.

Signed-off-by: David Hicks <david@hicks.id.au>
2014-06-29 04:12:06 +10:00
Nirgal Vourgère
dfd752ec02 Spelling fix
Suppress has 2 p in English, thanks lintian.
2014-01-04 15:16:46 +01:00
Nirgal Vourgère
ca395d8537 Added --disable-man configure option
You want that if you don't have txt2man or just are not interrested
in manuals.
2013-07-04 13:22:52 +02:00
Nirgal Vourgère
5eeb5c5050 Show SQLite support in gmdb2 and manual. 2013-01-13 22:41:10 +01:00
Nirgal Vourgère
a66531c74a Added option to choose how to export blobs
Supported modes are:
- strip (don't export)
- raw (compatibility)
- octal (export as \ooo)

Note that gmdb2 dialog where updated, but not the code. Many fixes to do
there first :/
2012-12-02 20:52:21 +01:00
Nirgal Vourgère
55c52b92bb Improved man page headers
. Fixed titles
. Added version to project name
. Added volume name
2012-10-10 18:26:23 +02:00
Nirgal Vourgère
7ff13dfada Added see also isql(1) in mdb-sql(1)
That tool offers similar functionality through odbc.
2012-07-21 12:09:01 +02:00
Nirgal Vourgère
4667844720 Added -N option in mdb-export man synopsis 2012-07-08 21:52:19 +02:00
Nirgal Vourgère
b0fb6a4167 Add basic support for Access 2010
Thanks Jakob Egger:
a928a36804
2012-07-07 21:08:25 +02:00
Jean-Michel Vourgère
813ca38a85 Fixed mdb-export -I man page. 2012-06-29 15:00:01 +02:00
Nirgal Vourgère
0347ef0a16 Changed man synopsis: Can't use both -M and file 2012-06-22 15:11:33 +02:00
Nirgal Vourgère
9ee1335940 Removed <> from man synopsis 2012-02-02 09:46:11 +01:00
Nirgal Vourgère
ef08e815a1 Documentation: See also sections, mdb-header ret 2012-02-02 09:25:21 +01:00
Nirgal Vourgère
ad87174f10 Added -N documentation in man pages 2012-01-30 12:07:08 +01:00
Nirgal Vourgère
4d1ec96658 openjade failure detection. Cleaning.
- Fix the html/install removal for "make clean"
- Fix test of "userguide" when making links
- Make must fail when openjade fails. Testing doc/book1.htm is not
  enough, for example when you have partial docbook installation.
2012-01-19 22:38:07 +01:00
Jean-Michel Vourgère
939d7206e2 html file generation from sgml
Build install.tgz documentation when DOCBOOK_DSL is defined, as
advertised by the comments.
Clean up unused html/dist/man targets
new clean-local target to remove tmp & html files
2011-10-22 14:54:32 +02:00
Jean-Michel Vourgère
96e3f6d18b make clean in doc/ removes .1 files 2011-09-04 17:13:05 -04:00
Nirgal Vourgre
dd0f4c3819 Patch docs.diff from Nirgal 2011-08-28 19:53:29 -04:00
Nirgal Vourgre
8ef50c444e Patch nosanitize.diff form Nirgal 2011-08-28 18:56:03 -04:00
Brian Bruns
ee1b13b68f version.diff from Nirgal, remove old version control stuff 2011-08-10 18:01:51 -04:00