@@ -257,8 +257,9 @@ public final class Database {
257
257
258
258
/// Starts a new transaction with the given mode.
259
259
///
260
- /// :param: mode The mode in which a transaction acquires a lock. (Default:
261
- /// .Deferred.)
260
+ /// :param: mode The mode in which a transaction acquires a lock.
261
+ ///
262
+ /// Default: `.Deferred`
262
263
///
263
264
/// :returns: The BEGIN TRANSACTION statement.
264
265
public func transaction( _ mode: TransactionMode = . Deferred) -> Statement {
@@ -268,8 +269,9 @@ public final class Database {
268
269
/// Runs a transaction with the given savepoint name (if omitted, it will
269
270
/// generate a UUID).
270
271
///
271
- /// :param: mode The mode in which a transaction acquires a lock. (Default:
272
- /// .Deferred.)
272
+ /// :param: mode The mode in which a transaction acquires a lock.
273
+ ///
274
+ /// Default: `.Deferred`
273
275
///
274
276
/// :param: block A closure to run SQL statements within the transaction.
275
277
/// Should return a TransactionResult depending on success or
@@ -285,7 +287,8 @@ public final class Database {
285
287
///
286
288
/// :param: all Only applicable if a savepoint is open. If true, commits all
287
289
/// open savepoints, otherwise releases the current savepoint.
288
- /// (Default: false.)
290
+ ///
291
+ /// Default: `false`
289
292
///
290
293
/// :returns: The COMMIT (or RELEASE) statement.
291
294
public func commit( all: Bool = false ) -> Statement {
@@ -301,7 +304,9 @@ public final class Database {
301
304
///
302
305
/// :param: all Only applicable if a savepoint is open. If true, rolls back
303
306
/// all open savepoints, otherwise rolls back the current
304
- /// savepoint. (Default: false.)
307
+ /// savepoint.
308
+ ///
309
+ /// Default: `false`
305
310
///
306
311
/// :returns: The ROLLBACK statement.
307
312
public func rollback( all: Bool = false ) -> Statement {
@@ -519,13 +524,16 @@ public final class Database {
519
524
/// :param: function The name of the function to create or redefine.
520
525
///
521
526
/// :param: argc The number of arguments that the function takes.
522
- /// If this parameter is -1, then the SQL function may
523
- /// take any number of arguments. (Default: -1.)
527
+ /// If this parameter is `-1`, then the SQL function
528
+ /// may take any number of arguments.
529
+ ///
530
+ /// Default: `-1`
524
531
///
525
532
/// :param: deterministic Whether or not the function is deterministic. If
526
533
/// the function always returns the same result for a
527
534
/// given input, SQLite can make optimizations.
528
- /// (Default: false.)
535
+ ///
536
+ /// Default: `false`
529
537
///
530
538
/// :param: block A block of code to run when the function is
531
539
/// called. The block is called with an array of raw
0 commit comments