Skip to content

Commit c4b407e

Browse files
committed
doc: added inline documentation
chore: removed debug code
1 parent de38cc8 commit c4b407e

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

Sources/SQLiteCloud/Core/SQLiteCloudResult.swift

+10
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,21 @@
2525

2626
import Foundation
2727

28+
/// An enumeration representing the result of a query or operation in SQLiteCloud.
2829
public enum SQLiteCloudResult: Hashable, Sendable {
30+
/// The operation was successful with no specific data.
2931
case success
32+
33+
/// A result in JSON format as a string.
3034
case json(String)
35+
36+
/// A single value result.
3137
case value(SQLiteCloudValue)
38+
39+
/// An array of values as a result.
3240
case array([SQLiteCloudValue])
41+
42+
/// A rowset containing columns and rows.
3343
case rowset(SQLiteCloudRowset)
3444
}
3545

Sources/SQLiteCloud/Core/SQLiteCloudValueType.swift

+14-1
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,24 @@
2525

2626
import Foundation
2727

28-
public enum SQLiteCloudValueType: Int {
28+
/// An enumeration representing the value types used in SQLiteCloud for database values.
29+
public enum SQLiteCloudValueType: Int, Sendable {
30+
/// An integer value.
2931
case integer = 1
32+
33+
/// A floating-point (double) value.
3034
case float = 2
35+
36+
/// A text (string) value.
3137
case text = 3
38+
39+
/// A binary large object (blob) value.
3240
case blob = 4
41+
42+
/// A null value.
3343
case null = 5
44+
45+
/// An unknown or unsupported value type.
3446
case unknown = -1
3547
}
48+

Sources/SQLiteCloud/Helpers/DownloadHelper.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@
2525

2626
import Foundation
2727

28-
class DownloadHelper {
28+
final class DownloadHelper {
2929
let outputStream: OutputStream
3030
let progressHandler: ProgressHandler
3131

3232
deinit {
33-
debugPrint("deinit")
3433
outputStream.close()
3534
}
3635

0 commit comments

Comments
 (0)