sqlite2dbf 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b3185c1faa5124f320a012e00126f27bf98959f
4
- data.tar.gz: 916a050f7b7cf55108f73f2871aff56ab6149fd1
3
+ metadata.gz: 7be1a8a57f53ba10d2c381fcfb92ca0c6f1ff968
4
+ data.tar.gz: 9adc48c9b542eee385332efb970af34e37ed6c4a
5
5
  SHA512:
6
- metadata.gz: '00850c4fe8bf96a5e21f0d8fb4c809cb9909ab30ef3c132b20166a9ac6eaf726f28018d47f486e244039e537729e20a4b00b13b4b066327a00ac1f985d0eb194'
7
- data.tar.gz: 8a8a6fda0faef19b4be0ba93927ce2066a1589b99c64381b3549253b0c5f14ba6f84ec174399593a70c741622032d0e20d64d3ff1465b199cae17ddb6c65a6a4
6
+ metadata.gz: '012886645568475052ef870adbdd5795f0f35b2a6971f859ea5fac9a8ec721a6c5826f538ed383604df9ca3e789f805c6cb97ed867c319e18c3bc4a9e9285e64'
7
+ data.tar.gz: 427f6ec1332cf382f1b05e73ccaa6d7c9f36448525d2e4296575aee66dc701c8f6c3c30149452f685996eda03876c9cfa1fd6565905da0fb44d96e8d191411e7
data/lib/constants.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  $APPNAME = 'sqlite2dbf'
2
- $VERSION = '0.2.2'
2
+ $VERSION = '0.2.3'
3
3
  $DATE = '2016-11-24'
4
4
  $AUTHORS = ["Michael Uplawski <michael.uplawski@uplawski.eu>"]
5
5
  $EMAIL = 'michael.uplawski@uplawski.eu'
data/man/sqlite2dbf.1 ADDED
@@ -0,0 +1,245 @@
1
+ .\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32)
2
+ .\"
3
+ .\" Standard preamble:
4
+ .\" ========================================================================
5
+ .de Sp \" Vertical space (when we can't use .PP)
6
+ .if t .sp .5v
7
+ .if n .sp
8
+ ..
9
+ .de Vb \" Begin verbatim text
10
+ .ft CW
11
+ .nf
12
+ .ne \\$1
13
+ ..
14
+ .de Ve \" End verbatim text
15
+ .ft R
16
+ .fi
17
+ ..
18
+ .\" Set up some character translations and predefined strings. \*(-- will
19
+ .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
20
+ .\" double quote, and \*(R" will give a right double quote. \*(C+ will
21
+ .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
22
+ .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
23
+ .\" nothing in troff, for use with C<>.
24
+ .tr \(*W-
25
+ .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
26
+ .ie n \{\
27
+ . ds -- \(*W-
28
+ . ds PI pi
29
+ . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30
+ . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
31
+ . ds L" ""
32
+ . ds R" ""
33
+ . ds C` ""
34
+ . ds C' ""
35
+ 'br\}
36
+ .el\{\
37
+ . ds -- \|\(em\|
38
+ . ds PI \(*p
39
+ . ds L" ``
40
+ . ds R" ''
41
+ . ds C`
42
+ . ds C'
43
+ 'br\}
44
+ .\"
45
+ .\" Escape single quotes in literal strings from groff's Unicode transform.
46
+ .ie \n(.g .ds Aq \(aq
47
+ .el .ds Aq '
48
+ .\"
49
+ .\" If the F register is >0, we'll generate index entries on stderr for
50
+ .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
51
+ .\" entries marked with X<> in POD. Of course, you'll have to process the
52
+ .\" output yourself in some meaningful fashion.
53
+ .\"
54
+ .\" Avoid warning from groff about undefined register 'F'.
55
+ .de IX
56
+ ..
57
+ .if !\nF .nr F 0
58
+ .if \nF>0 \{\
59
+ . de IX
60
+ . tm Index:\\$1\t\\n%\t"\\$2"
61
+ ..
62
+ . if !\nF==2 \{\
63
+ . nr % 0
64
+ . nr F 2
65
+ . \}
66
+ .\}
67
+ .\"
68
+ .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69
+ .\" Fear. Run. Save yourself. No user-serviceable parts.
70
+ . \" fudge factors for nroff and troff
71
+ .if n \{\
72
+ . ds #H 0
73
+ . ds #V .8m
74
+ . ds #F .3m
75
+ . ds #[ \f1
76
+ . ds #] \fP
77
+ .\}
78
+ .if t \{\
79
+ . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80
+ . ds #V .6m
81
+ . ds #F 0
82
+ . ds #[ \&
83
+ . ds #] \&
84
+ .\}
85
+ . \" simple accents for nroff and troff
86
+ .if n \{\
87
+ . ds ' \&
88
+ . ds ` \&
89
+ . ds ^ \&
90
+ . ds , \&
91
+ . ds ~ ~
92
+ . ds /
93
+ .\}
94
+ .if t \{\
95
+ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96
+ . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97
+ . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98
+ . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99
+ . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100
+ . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101
+ .\}
102
+ . \" troff and (daisy-wheel) nroff accents
103
+ .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104
+ .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105
+ .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106
+ .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107
+ .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108
+ .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109
+ .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110
+ .ds ae a\h'-(\w'a'u*4/10)'e
111
+ .ds Ae A\h'-(\w'A'u*4/10)'E
112
+ . \" corrections for vroff
113
+ .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114
+ .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115
+ . \" for low resolution devices (crt and lpr)
116
+ .if \n(.H>23 .if \n(.V>19 \
117
+ \{\
118
+ . ds : e
119
+ . ds 8 ss
120
+ . ds o a
121
+ . ds d- d\h'-1'\(ga
122
+ . ds D- D\h'-1'\(hy
123
+ . ds th \o'bp'
124
+ . ds Th \o'LP'
125
+ . ds ae ae
126
+ . ds Ae AE
127
+ .\}
128
+ .rm #[ #] #H #V #F C
129
+ .\" ========================================================================
130
+ .\"
131
+ .IX Title "SQLITE2DBF 1"
132
+ .TH SQLITE2DBF 1 "2016-12-24" "perl v5.24.1" "sqlite2dbf conversion utility"
133
+ .\" For nroff, turn off justification. Always turn off hyphenation; it makes
134
+ .\" way too many mistakes in technical documents.
135
+ .if n .ad l
136
+ .nh
137
+ .SH "NAME"
138
+ sqlite2dbf \- convert an sqlite database\-table to FoxBase (dBase)
139
+ .SH "SYNOPSIS"
140
+ .IX Header "SYNOPSIS"
141
+ \&\fB sqlite2dbf \-s [SQLite\-file] [options]\fR
142
+ .PP
143
+ or
144
+ .PP
145
+ \&\fB sqlite2dbf [Common options]\fR
146
+ .SH "DESCRIPTION"
147
+ .IX Header "DESCRIPTION"
148
+ You can use a variety of graphical user interfaces, notably those which support
149
+ the \s-1SQL\s0 language, to create and maintain SQLite databases. The same is no
150
+ longer true for dBase, a database format which is considered outdated,
151
+ nowadays. However, the file-format is still in use in some contexts.
152
+ .PP
153
+ With sqlite2dbf you can convert one table at a time from an SQLite database
154
+ into a dbf-file (in FoxBase format) and so benefit from the available
155
+ GUI-interfaces, without risking incompatibilities, where a dBase-file is
156
+ needed.
157
+ .SH "OPTIONS"
158
+ .IX Header "OPTIONS"
159
+ \&\fB\-s, \-\-source\fR [\s-1PATH\s0] SQLite-file to read.
160
+ .PP
161
+ \&\fB\-c, \-\-config\fR [\s-1PATH\s0] Configuration file for this transformation
162
+ .PP
163
+ \&\fB\-n, \-\-name\fR [\s-1TABLE\s0] The name of the table from the SQLite-database to convert
164
+ .PP
165
+ \&\fB\-t, \-\-target\fR [\s-1PATH\s0] Path to the dBase-file to be written.
166
+ .PP
167
+ \&\fB\-l, \-\-list\fR Show the list of available tables and exit
168
+ .PP
169
+ \&\fB\-o, \-\-out\fR [\s-1PATH\s0] Use the table-name as file-name for the DBF-result, store output in \s-1PATH\s0
170
+ .PP
171
+ \&\fB \-\-time\fR [list] Fields (table-columns) which shall be handled as timestamp values.
172
+ .PP
173
+ \&\fB \-\-date\fR [list] Fields (table-columns) which shall be handled as date-time values.
174
+ .SS "Common Options"
175
+ .IX Subsection "Common Options"
176
+ \&\fB\-d, \-\-debug\fR Show debug-messages
177
+ .PP
178
+ \&\fB\-h, \-\-help\fR Show this message
179
+ .PP
180
+ \&\fB\-v, \-\-version\fR Show version and program information
181
+ .SH "EXAMPLES"
182
+ .IX Header "EXAMPLES"
183
+ List available tables in a SQLite database:
184
+ .PP
185
+ .Vb 1
186
+ \& sqlite2dbf \-\-list \-s database.sqlite
187
+ .Ve
188
+ .PP
189
+ Transform a table from the database to dBase, the resulting file will be named after the table:
190
+ .PP
191
+ .Vb 1
192
+ \& sqlite2dbf \-s database.sqlite \-\-name table
193
+ .Ve
194
+ .PP
195
+ Transform a table from the database to dBase, write the result to the target-file:
196
+ .PP
197
+ .Vb 1
198
+ \& sqlite2dbf \-s database.sqlite \-\-name table \-t /directory/file.dbf
199
+ .Ve
200
+ .PP
201
+ Transform a table from the database to dBase, put the result in a named directory:
202
+ .PP
203
+ .Vb 1
204
+ \& sqlite2dbf \-s database.sqlite \-\-name table \-o /directory
205
+ .Ve
206
+ .PP
207
+ Transform a table from the database to dBase, handle the named fields as dates:
208
+ .PP
209
+ .Vb 1
210
+ \& sqlite2dbf \-s database.sqlite \-\-name table \-\-date "expired last_accessed"
211
+ .Ve
212
+ .PP
213
+ As before but be verbose:
214
+ .PP
215
+ .Vb 1
216
+ \& sqlite2dbf \-s database.sqlite \-\-name table \-\-date "expired last_accessed" \-d
217
+ .Ve
218
+ .PP
219
+ Use a user-defined configuration from config.txt for this transformation:
220
+ .PP
221
+ .Vb 1
222
+ \& sqlite2dbf \-c /home/user/sqlite2dbf_config.txt
223
+ .Ve
224
+ .PP
225
+ As before but overwrite the path to the source-file:
226
+ .PP
227
+ .Vb 1
228
+ \& sqlite2dbf \-c /home/user/sqlite2dbf_config.txt \-\-source base.sqlite
229
+ .Ve
230
+ .SH "ERRORS and WARNINGS"
231
+ .IX Header "ERRORS and WARNINGS"
232
+ sqlite2dbf does not return error-codes but writes errors and warnings to
233
+ \&\s-1STDOUT.\s0 This mainly concerns cases, where a data-type from the SQLite-database
234
+ cannot be converted for use in the dBase-file, probably when date\- and/or
235
+ time-fields are listed on the command-line. Please contact the author, if these
236
+ issues seriously obstruct your work with sqlite2dbf. The converter should in
237
+ any way create a useable dBase-file.
238
+ .SH "SOURCE and DEVELOPMENT"
239
+ .IX Header "SOURCE and DEVELOPMENT"
240
+ sqlite2dbf is developed in Ruby and can be installed as a Ruby-Gem. As Ruby is
241
+ an interpreter-language, the source-code of the installed version is always
242
+ accessible. You can also decompress the gem-file to take a look at the code.
243
+ .SH "AUTHOR"
244
+ .IX Header "AUTHOR"
245
+ Michael Uplawski <michael[dot]uplawski[at]uplawski[dot]eu>
data/sqlite2dbf.gemspec CHANGED
@@ -3,11 +3,11 @@ Gem::Specification.new do |s|
3
3
  s.name = $APPNAME
4
4
  s.version = $VERSION
5
5
  s.date = $DATE
6
- s.summary = "Runtime-requirements added. Rewrite of the main-class SQLite2DBF, mappings in the new class Mappings, the configuration can be persisted. New program-options. New translations."
6
+ s.summary = "Man-Page in the doc-subdirectory. I still to not know how to install it correctly on the target system."
7
7
  s.description = "converts SQLite to DBase"
8
8
  s.authors = $AUTHORS
9
9
  s.email = $EMAIL
10
- s.files = %w~sqlite2dbf~.collect{|f| 'bin/' << f} + %w~constants.rb mapping.rb argparser.rb sqlite2dbf.rb file_checking.rb log.conf logging.rb mapping.rb configuration.rb config translating.rb translations ~.collect{|f| 'lib/' << f} + %w~sqlite2dbf.gemspec~.collect{|f|f}
10
+ s.files = %w~sqlite2dbf~.collect{|f| 'bin/' << f} + %w~constants.rb mapping.rb argparser.rb sqlite2dbf.rb file_checking.rb log.conf logging.rb mapping.rb configuration.rb config translating.rb translations ~.collect{|f| 'lib/' << f} + %w~sqlite2dbf.gemspec~.collect{|f|f} + %w~sqlite2dbf.1~.collect{|f| 'man/' << f}
11
11
  s.requirements = 'shp, sqlite3'
12
12
  s.add_runtime_dependency 'shp', '~> 0.0', '>= 0.0.3'
13
13
  s.add_runtime_dependency 'sqlite3', '~> 1.3', '>= 1.3.12'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlite2dbf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Uplawski <michael.uplawski@uplawski.eu>
@@ -69,6 +69,7 @@ files:
69
69
  - lib/sqlite2dbf.rb
70
70
  - lib/translating.rb
71
71
  - lib/translations
72
+ - man/sqlite2dbf.1
72
73
  - sqlite2dbf.gemspec
73
74
  homepage: https://rubygems.org/gems/sqlite2dbf
74
75
  licenses:
@@ -94,7 +95,6 @@ rubyforge_project:
94
95
  rubygems_version: 2.6.8
95
96
  signing_key:
96
97
  specification_version: 4
97
- summary: Runtime-requirements added. Rewrite of the main-class SQLite2DBF, mappings
98
- in the new class Mappings, the configuration can be persisted. New program-options.
99
- New translations.
98
+ summary: Man-Page in the doc-subdirectory. I still to not know how to install it correctly
99
+ on the target system.
100
100
  test_files: []