-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcldump.1.txt
107 lines (96 loc) · 2.99 KB
/
cldump.1.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.\" man page for cldump
.\" groff -man -Tascii cldump.1
.\" $Id: cldump.1 67 2010-11-27 10:20:13Z julien $
.\"
.TH cldump 1 "November 2010" Linux "User Manuals"
.SH NAME
cldump \- Clarion database extractor
.SH SYNOPSIS
.B cldump
[\fIoptions\fR] database.dat
.SH DESCRIPTION
.B cldump
extracts the data contained in a
.I Clarion
database;
.I Clarion
is a Windows IDE similar to
.I Delphi
or others, and has its own (simple) database format.
.B cldump
can extract the data contained in such a database, and export it to CSV,
SQL (including the database schema, keys and indexes) or its own format (this format
will give you all the meta information, but isn't easily parsable).
A
.I Clarion
database consists in a set of files :
.TP
.B .DAT
files contain the data,
.TP
.B .Kxx
files contain the key/index data,
.TP
.B .MEM
files contain the memo entries associated to the data.
.SH OPTIONS
.TP
\fB\-x\fR \fIn\fR, \fB\-\-decrypt\fR \fIn\fR
Decrypt an encrypted file. Required argument \fIn\fR indicates
the location where the key will be retrieved. Valid values are in
the range 1 \- 4 inclusive. \fIn\fR = 1 usually works.
.BR
Decryption happens in-place so \fBKEEP A BACKUP\fR as there is no
guarantee the decryption process won't fail. Encrypted files must
be decrypted before they can be dumped.
.BR
Note that only the data file and the memo file are decrypted in
this process; key/index files are left untouched as \fBcldump\fR
doesn't use them.
.TP
\fB\-d\fR, \fB\-\-dump\-active\fR
Dump active entries only
.TP
\fB\-D\fR, \fB\-\-dump\-data\fR
Dump the actual data (active and deleted entries)
.TP
\fB\-m\fR, \fB\-\-dump\-meta\fR
Dump meta information (no SQL or CSV output format exist for this
option)
.TP
\fB\-f\fR \fIc\fR, \fB\-\-field\-separator\fR \fIc\fR
Set the field separator to character \fIc\fR. Only valid for CSV
output (see below).
.TP
\fB\-c\fR, \fB\-\-csv\fR
Dump data or schema in CSV format
.TP
\fB\-S\fR, \fB\-\-sql\fR
Dump data or schema in SQL format
.TP
\fB\-s\fR, \fB\-\-schema\fR
Dump database schema
.TP
\fB\-M\fR, \fB\-\-mysql\fR
Use MySQL specific construct (backticks, ...)
.TP
\fB\-n\fR, \fB\-\-no\-memo\fR
Do not dump memo entries
.TP
\fB\-U\fR[\fIcharset\fR], \fB\-\-utf8\fR[=\fIcharset\fR]
Transcode strings and memos from \fIcharset\fR to UTF-8 (\fIcharset\fR defaults
to ISO8859-1; for the list of supported charsets, see \fBiconv \-\-list\fR)
.SH OUTPUT
\fBcldump\fR outputs the data to \fIstdout\fR or \fIstderr\fR depending on the
output format selected, the data to extract and the type of the data (data, meta
data).
.SH BUGS
The SQL output could be improved. Not all the types supported by the \fIClarion\fR
database format are implemented yet (due to lack of test databases using these
types of data); see the source code for details.
Please report bugs to \[email protected]\fR; if possible, please send patches
as the set of test databases I have is \fBvery\fR limited.
.SH AUTHOR
\fBcldump\fR was written by Julien BLACHE <[email protected]>.
.SH HOMEPAGE
http://www.technologeek.org/projects/cldump/