Skip to content

Commit e62b9ce

Browse files
committed
Upgrade to AsciidoctorJ 3.0.1
* Replace doc-extension.groovy (incompatible with AsciidoctorJ 3.0) with org.firebirdsql.asciidoctor:canonical-link and org.firebirdsql.asciidoctor:since-until-macro extensions * Use since/until macro instead of the previous since/until style
1 parent 607182c commit e62b9ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+168
-198
lines changed

build.gradle

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,26 @@ repositories {
99
mavenCentral()
1010
}
1111

12+
configurations {
13+
asciidoctorExt
14+
}
15+
16+
dependencies {
17+
asciidoctorExt 'org.firebirdsql.asciidoctor:canonical-link:1.0'
18+
asciidoctorExt 'org.firebirdsql.asciidoctor:since-until-macro:1.0'
19+
}
20+
1221
asciidoctorj {
13-
// asciidoctorj 3.0.x doesn't seem to work with asciidoctorj-groovy-dsl used for docExtensions
14-
version = '2.5.13'
22+
version = '3.0.1'
1523
modules {
1624
pdf {
1725
version '2.3.23'
1826
}
1927
}
20-
docExtensions file('doc-extension.groovy')
2128
}
2229

2330
asciidoctor {
31+
configurations 'asciidoctorExt'
2432
baseDirFollowsSourceDir()
2533
executionMode = OUT_OF_PROCESS
2634
sources {
@@ -41,6 +49,7 @@ pdfThemes {
4149
}
4250

4351
asciidoctorPdf {
52+
configurations 'asciidoctorExt'
4453
baseDirFollowsSourceDir()
4554
executionMode = OUT_OF_PROCESS
4655
sources {

doc-extension.groovy

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/docs/asciidoc/appendices/connectionproperties/connectionproperties.adoc

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Jaybird has a number of connection properties that can be used to configure a co
77
This appendix provides a list of most connection properties and a short explanation to each of them.
88
The properties listed below are usable as JDBC connection properties.
99

10-
The properties marked as _boolean property_ can be included in the JDBC URL with values `true`, `false` ([.since]_Jaybird 5_), but also without a value, or with an empty value (which will both signify `true`).
10+
The properties marked as _boolean property_ can be included in the JDBC URL with values `true`, `false` (since:[Jaybird 5]), but also without a value, or with an empty value (which will both signify `true`).
1111
For readability, we suggest that you only specify these properties explicitly when you want to enable or disable them, and if you do, to use explicit values like `true` or `false`.
1212

1313
In Jaybird 4 and earlier, the default for all _boolean_ properties is `false`. +
@@ -61,7 +61,7 @@ a|`processId` +
6161
See <<ref-processinfo>> for more information.
6262

6363
a|`processName` +
64-
`process_name`, `isc_dpb_process_name`, `ApplicationName` ([.since]_Jaybird 6_), `applicationName` ([.since]_Jaybird 6_)
64+
`process_name`, `isc_dpb_process_name`, `ApplicationName` (since:[Jaybird 6]), `applicationName` (since:[Jaybird 6])
6565
|Specifies the process name reported to Firebird.
6666
See <<ref-processinfo>> for more information.
6767
|===
@@ -75,7 +75,7 @@ See <<ref-processinfo>> for more information.
7575
|Explanation
7676

7777
a|`asyncFetch`
78-
a|Jaybird specific property ([.since]_Jaybird 6_).
78+
a|Jaybird specific property (since:[Jaybird 6]).
7979
Boolean property.
8080
Enables/disables async fetching for pure Java connections.
8181
Default is `true`.
@@ -90,15 +90,15 @@ In general, only specify `charSet` _or_ `encoding`, not both. +
9090
Default: `NONE` (unless `charSet` is specified).
9191

9292
a|`charSet` +
93-
`localEncoding`, `charset` ([.since]_Jaybird 5_)
93+
`localEncoding`, `charset` (since:[Jaybird 5])
9494
|Jaybird specific property.
9595
Character set for the connection using Java character set name.
9696
Similar to the previous property, but instead of Firebird-specific name accepts a Java character set name. +
9797
In general, only specify `charSet` _or_ `encoding`, not both.
9898

9999
a|`searchPath` +
100100
`search_path`, `isc_dpb_search_path`
101-
a|Schemas to search for unqualified objects ([.since]_Jaybird 7_, [.since]_Firebird 6.0_) +
101+
a|Schemas to search for unqualified objects (since:[Jaybird 7], since:[Firebird 6.0]) +
102102
Comma-separated list of schema names.
103103
For a case-sensitive or otherwise non-regular schema name, the identifier *must* be quoted.
104104
See <<ref-schema-support-search-path>> for more information.
@@ -148,19 +148,19 @@ a|`blobBufferSize` +
148148
|Jaybird specific property.
149149
Size in bytes of the buffer used to transfer BLOB content.
150150
Specifying a size greater than 65535 may result in additional server roundtrips per read, but may also waste memory for larger buffers than used in some cases.
151-
Values lower than 512 will use 512 ([.since]_Jaybird 6_). +
151+
Values lower than 512 will use 512 (since:[Jaybird 6]). +
152152
Default: `16384`
153153

154154
a|`maxInlineBlobSize` +
155155
`max_inline_blob_size`, `isc_dpb_max_inline_blob_size`
156-
|Maximum size in bytes of inline blobs ([.since]_Jaybird 5.0.8/6.0.2_ [.since]_Firebird 5.0.3_).
156+
|Maximum size in bytes of inline blobs (since:[Jaybird 5.0.8/6.0.2] since:[Firebird 5.0.3]).
157157
A value of `0` disables transmission of inline blobs.
158158
See <<ref-inline-blob>> for more information. +
159159
Default: `65535`, maximum value: ``65535``footnote:[The maximum is decided server-side, and may change in future Firebird versions.]
160160

161161
a|`maxBlobCacheSize` +
162162
`max_blob_cache_size`, `isc_dpb_max_blob_cache_size`
163-
|Maximum size in bytes -- per connection -- of the inline blob cache ([.since]_Jaybird 5.0.8/6.0.2_ [.since]_Firebird 5.0.3_).
163+
|Maximum size in bytes -- per connection -- of the inline blob cache (since:[Jaybird 5.0.8/6.0.2] since:[Firebird 5.0.3]).
164164
A value of `0` disables the cache.
165165
Disabling the cache does not disable transmission of inline blobs: set `maxInlineBlobSize` to `0` to disable transmission.
166166
See <<ref-inline-blob>> for more information. +
@@ -179,7 +179,7 @@ For Type 2 (native) connections, the connect timeout works as the DPB item `isc_
179179
This means that for native connections the connect timeout will not detect unreachable hosts within the timeout.
180180

181181
a|`wireCompression`
182-
|Jaybird specific property ([.since]_Firebird 3.0_).
182+
|Jaybird specific property (since:[Firebird 3.0]).
183183
Boolean property.
184184
Enables zlib wire compression.
185185
See <<ref-wirecompression>> for more information.
@@ -205,30 +205,30 @@ Value `true` disables usage of procedure type metadata to decide to use `SELECT`
205205
See <<ref-callable-ignore-proctype>> for more information.
206206

207207
a|`scrollableCursor`
208-
a|Jaybird specific property ([.since]_Jaybird 5_ [.since]_Firebird 5.0_).
208+
a|Jaybird specific property (since:[Jaybird 5] since:[Firebird 5.0]).
209209
Allowed values: `EMULATED`, `SERVER` (case-insensitive)
210210
Configures use of server-side scrollable cursors (Firebird 5.0 and higher, pure Java connections only).
211211
See <<ref-scrollable-cursor>> for more information. +
212212
Default: `EMULATED`
213213

214214
a|`useServerBatch`
215-
a|Jaybird specific property ([.since]_Jaybird 5_ [.since]_Firebird 4.0_).
215+
a|Jaybird specific property (since:[Jaybird 5] since:[Firebird 4.0]).
216216
Boolean property.
217217
Value `true` enables server-side batch if available (Firebird 4.0 and higher, pure Java connection only).
218218
Set to `false` to always use emulated batch updates.
219219
See <<ref-batch-use-server-batch>> for more information. +
220220
Default value: `true`
221221

222222
a|`serverBatchBufferSize`
223-
a|Jaybird specific property ([.since]_Jaybird 5_ [.since]_Firebird 4.0_).
223+
a|Jaybird specific property (since:[Jaybird 5] since:[Firebird 4.0]).
224224
Size in bytes of the server-side batch buffer.
225225
Value `< 0` -- server-side default, `0` -- server-side maximum, `> 0` -- size (capped at server-side maximum)
226226
See <<ref-batch-server-batch-buffer-size>> for more information. +
227227
Default value: `0`
228228

229229
a|`dataTypeBind` +
230230
`set_bind`
231-
|Defines data type bind from one type to a different type. ([.since]_Firebird 4.0_)
231+
|Defines data type bind from one type to a different type. (since:[Firebird 4.0])
232232
Multiple bind definitions are separated by semicolons.
233233
When used in a JDBC url, the semicolon must be escaped using `%3B`.
234234
See <<ref-datatypebind>> for more information.
@@ -242,26 +242,26 @@ Default: the JVM default time zone (Jaybird 4 or higher), or not set (Jaybird 3
242242

243243
a|`decfloatRound` +
244244
`decfloat_round`
245-
|Defines server-side rounding behaviour for `DECFLOAT` data types ([.since]_Firebird 4.0_)
245+
|Defines server-side rounding behaviour for `DECFLOAT` data types (since:[Firebird 4.0])
246246
Possible values: `ceiling`, `up`, `half_up` (default), `half_even`, `half_down`, `down`, `floor`, `reround`
247247
See <<ref-decfloat-traps-round>> for more information.
248248

249249
a|`decfloatTraps` +
250250
`decfloat_traps`
251-
|Defines server-side error behaviour for `DECFLOAT` data types ([.since]_Firebird 4.0_)
251+
|Defines server-side error behaviour for `DECFLOAT` data types (since:[Firebird 4.0])
252252
Comma-separated list with options: `Division_by_zero` (default), `Inexact`, `Invalid_operation` (default), `Overflow` (default), `Underflow`
253253
See <<ref-decfloat-traps-round>> for more information.
254254

255255
a|`useStandarUdf` +
256256
`use_standard_udf`
257-
|Jaybird specific property ([.until]_Jaybird 5_).
257+
|Jaybird specific property (until:[Jaybird 5]).
258258
Boolean property.
259259
Tells the JDBC driver to assume that standard UDF library is registered in the database when converting escaped function calls.
260260
With recent versions of Firebird, it is advisable to not specify this property and rely on the built-in functions instead.
261261
See <<jdbcescape>> for more information.
262262

263263
a|`timestampUsesLocalTimezone`
264-
|Jaybird specific property ([.until]_Jaybird 6_).
264+
|Jaybird specific property (until:[Jaybird 6]).
265265
Boolean property.
266266
Changes how `getTime`/`getTimestamp` methods accepting a `java.util.Calendar` apply the calendar offset in calculations.
267267

@@ -285,18 +285,18 @@ a|`set_db_charset` +
285285
|Set the default character set of the database.
286286

287287
a|`enableProtocol`
288-
|Jaybird specific property ([.since]_Jaybird 6_).
288+
|Jaybird specific property (since:[Jaybird 6]).
289289
Enable unsupported protocol versions, if available.
290290
Comma-separated list of protocol versions to enable in addition to the supported protocol versions.
291291
The value `"*"` will enable all available protocol versions.
292292
See <<ref-enable-protocol>> for more information.
293293

294294
a|`parallelWorkers` +
295295
`parallel_workers`, `isc_dpb_parallel_workers`
296-
|The number of parallel workers to use ([.since]_Jaybird 5.0.2_ [.since]_Firebird 5.0_)
296+
|The number of parallel workers to use (since:[Jaybird 5.0.2] since:[Firebird 5.0])
297297

298298
a|`nativeLibraryPath`
299-
a|Jaybird specific property ([.since]_Jaybird 6_).
299+
a|Jaybird specific property (since:[Jaybird 6]).
300300

301301
Specifies a directory to try and load the client library for native (`fbclient`) or embedded (`fbembed` or `fbclient`) connections.
302302
If a file name is specified instead of a directory name, the parent directory will be used.
@@ -308,46 +308,46 @@ Any subsequent connection uses the library that was loaded by the first connecti
308308
====
309309

310310
a|`useCatalogAsPackage`
311-
a|Jaybird specific property ([.since]_Jaybird 6_ [.since]_Firebird 3.0_).
311+
a|Jaybird specific property (since:[Jaybird 6] since:[Firebird 3.0]).
312312
Boolean property.
313313
Enables support for reporting database metadata information on packages, and functions and stored procedures in packages.
314314
See <<ref-catalog-as-package>> for more information.
315315

316316
a|`allowTxStmts`
317-
a|Jaybird specific property ([.since]_Jaybird 6_).
317+
a|Jaybird specific property (since:[Jaybird 6]).
318318
Boolean property.
319319
Enables support for executing `COMMIT [WORK]`, `ROLLBACK [WORK]` and `SET TRANSACTION`.
320320
Default is `false`.
321321
See <<ref-allowtxstmts>> for more information.
322322

323323
a|`extendedMetadata`
324-
a|Jaybird specific property ([.since]_Jaybird 5.0.5_).
324+
a|Jaybird specific property (since:[Jaybird 5.0.5]).
325325
Boolean property.
326326
Enables support for retrieving extended metadata.
327327
Default is `true`.
328328
See <<ref-extendedmetadata>> for more information.
329329

330330
a|`createDatabaseIfNotExist`
331-
a|Jaybird specific property ([.since]_Jaybird 6_).
331+
a|Jaybird specific property (since:[Jaybird 6]).
332332
Boolean property.
333333
Attempts to create a database if it does not exist.
334334
Default is `false`.
335335
See <<ref-create-database-if-not-exist>> for more information.
336336

337337
a|`reportSQLWarnings`
338-
a|Jaybird specific property ([.since]_Jaybird 6_).
338+
a|Jaybird specific property (since:[Jaybird 6]).
339339
Possible values (case-insensitive): `ALL` (default), `NONE`.
340340
Can be used to disable reporting of ``SQLWarning``s.
341341
See <<ref-report-sql-warnings>> for more information.
342342

343343
a|`socketFactory`
344-
a|Jaybird specific property ([.since]_Jaybird 6_).
344+
a|Jaybird specific property (since:[Jaybird 6]).
345345
Sets a custom socket factory for pure Java connections.
346346
See <<ref-socket-factory>> for more information.
347347

348348
|===
349349

350-
In addition, Jaybird allows using arbitrary Database Parameters Block entries as connection properties (provided they are defined in Jaybird's `DpbItems` and `SpbItems` ([.since]_Jaybird 5_), or `ISCConstants` ([.until]_Jaybird 5_)).
350+
In addition, Jaybird allows using arbitrary Database Parameters Block entries as connection properties (provided they are defined in Jaybird's `DpbItems` and `SpbItems` (since:[Jaybird 5]), or `ISCConstants` (until:[Jaybird 5])).
351351
The current Firebird API has over 100 DPB parameters, however only few of them are interesting for regular users.
352352
If a DPB item called `isc_dpb_XXX` exists, then Jaybird allows these to be specified as `isc_dpb_XXX` and `XXX`.
353353
By default properties are mapped as string DPB items.

src/docs/asciidoc/appendices/datatypeconversion/datatypeconversion.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ a|`NUMERIC` +
5757

5858
|`BINARY`
5959
a|`CHAR CHARACTER SET OCTETS` +
60-
`BINARY` ([.since]_Firebird 4.0_)
60+
`BINARY` (since:[Firebird 4.0])
6161
|`byte[]`
6262

6363
|`VARBINARY`
6464
a|`VARCHAR CHARACTER SET OCTETS` +
65-
`VARBINARY` ([.since]_Firebird 4.0_)
65+
`VARBINARY` (since:[Firebird 4.0])
6666
|`byte[]`
6767

6868
|`LONGVARBINARY`
@@ -78,27 +78,27 @@ a|`VARCHAR CHARACTER SET OCTETS` +
7878
|`java.sql.Time`
7979

8080
|`TIME_WITH_TIMEZONE`
81-
|`TIME WITH TIME ZONE` ([.since]_Firebird 4.0_)
81+
|`TIME WITH TIME ZONE` (since:[Firebird 4.0])
8282
|`java.time.OffsetTime`
8383

8484
|`TIMESTAMP`
8585
|`TIMESTAMP`
8686
|`java.sql.Timestamp`
8787

8888
|`TIMESTAMP_WITH_TIMEZONE`
89-
|`TIMESTAMP WITH TIME ZONE` ([.since]_Firebird 4.0_)
89+
|`TIMESTAMP WITH TIME ZONE` (since:[Firebird 4.0])
9090
|`java.time.OffsetDateTime`
9191

9292
|`BLOB`
9393
|`BLOB SUB_TYPE < 0`
9494
|`java.sql.Blob`
9595

9696
|`BOOLEAN`
97-
|`BOOLEAN` ([.since]_Firebird 3.0_)
97+
|`BOOLEAN` (since:[Firebird 3.0])
9898
|`Boolean`
9999

100100
|``JaybirdTypeCodes.DECFLOAT``footnote:[JDBC does not yet define a `java.sql.Types` code for `DECFLOAT`]
101-
|`DECFLOAT` ([.since]_Firebird 4.0_)
101+
|`DECFLOAT` (since:[Firebird 4.0])
102102
|`java.math.BigDecimal`
103103
|===
104104

src/docs/asciidoc/appendices/jdbcescape/jdbcescape.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ Jaybird will try to provide an equivalent of the JDBC function using the built-i
77
When no equivalent is available, Jaybird will pass the function call "as is" to the database assuming that it contains the necessary UDF, UDR or stored function declaration.
88

99
Not all functions described in the JDBC specification have corresponding built-in functions in Firebird, but some are available in the standard UDF library ``ib_udf``{wj}footnote:[On Windows platform it is represented by the `ib_udf.dll`, on Linux it is represented by the `libib_udf.so`.] shipped with Firebird.
10-
Jaybird provides a connection parameter `use_standard_udf` to configure the driver to assume that functions from that UDF are available in the database ([.until]_Jaybird 5_).
10+
Jaybird provides a connection parameter `use_standard_udf` to configure the driver to assume that functions from that UDF are available in the database (until:[Jaybird 5]).
1111
In this case Jaybird will convert all JDBC function calls into the corresponding calls of the UDF functions.
1212

1313
In recent Firebird versions, the number of built-in functions has been greatly increased, and Jaybird 3 and higher can now map almost all JDBC escapes to those built-in functions.
1414
Using the `use_standard_udf` is no longer advisable, especially as UDFs are now deprecated and will be removed in a future Firebird version.
15-
[.since]_Jaybird 5_ UDF mode (`use_standard_udf`) is no longer available in Jaybird 5 and higher.
15+
since:[Jaybird 5] UDF mode (`use_standard_udf`) is no longer available in Jaybird 5 and higher.
1616

1717
Below you will find the list of JDBC functions and whether they have a corresponding equivalent in the "built-in" and in the "UDF" modes.
1818

0 commit comments

Comments
 (0)