Skip to content

Commit

Permalink
Merge pull request #1489 from LukasKorba/1488-Resolve-build-issues-wi…
Browse files Browse the repository at this point in the history
…th-SQLight

[#1488] Resolve build issues with SQLight
  • Loading branch information
LukasKorba authored Sep 17, 2024
2 parents 4071e27 + 6575a9b commit c77ce16
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ let package = Package(
)
],
dependencies: [
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.19.1"),
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.14.1"),
.package(url: "https://github.com/grpc/grpc-swift.git", from: "1.23.0"),
.package(url: "https://github.com/stephencelis/SQLite.swift.git", from: "0.15.3"),
.package(url: "https://github.com/zcash-hackworks/zcash-light-client-ffi", exact: "0.9.1")
],
targets: [
Expand Down
4 changes: 2 additions & 2 deletions Sources/ZcashLightClientKit/DAO/TransactionDao.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import SQLite

class TransactionSQLDAO: TransactionRepository {
enum NotesTableStructure {
static let transactionID = Expression<Int>("tx")
static let memo = Expression<Blob>("memo")
static let transactionID = SQLite.Expression<Int>("tx")
static let memo = SQLite.Expression<Blob>("memo")
}

let dbProvider: ConnectionProvider
Expand Down
48 changes: 24 additions & 24 deletions Sources/ZcashLightClientKit/Entity/TransactionEntity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ public enum ZcashTransaction {

extension ZcashTransaction.Output {
enum Column {
static let rawID = Expression<Blob>("txid")
static let pool = Expression<Int>("output_pool")
static let index = Expression<Int>("output_index")
static let toAccount = Expression<Int?>("to_account_id")
static let fromAccount = Expression<Int?>("from_account_id")
static let toAddress = Expression<String?>("to_address")
static let value = Expression<Int64>("value")
static let isChange = Expression<Bool>("is_change")
static let memo = Expression<Blob?>("memo")
static let rawID = SQLite.Expression<Blob>("txid")
static let pool = SQLite.Expression<Int>("output_pool")
static let index = SQLite.Expression<Int>("output_index")
static let toAccount = SQLite.Expression<Int?>("to_account_id")
static let fromAccount = SQLite.Expression<Int?>("from_account_id")
static let toAddress = SQLite.Expression<String?>("to_address")
static let value = SQLite.Expression<Int64>("value")
static let isChange = SQLite.Expression<Bool>("is_change")
static let memo = SQLite.Expression<Blob?>("memo")
}

init(row: Row) throws {
Expand Down Expand Up @@ -146,21 +146,21 @@ extension ZcashTransaction.Output {

extension ZcashTransaction.Overview {
enum Column {
static let accountId = Expression<Int>("account_id")
static let minedHeight = Expression<BlockHeight?>("mined_height")
static let index = Expression<Int?>("tx_index")
static let rawID = Expression<Blob>("txid")
static let expiryHeight = Expression<BlockHeight?>("expiry_height")
static let raw = Expression<Blob?>("raw")
static let value = Expression<Int64>("account_balance_delta")
static let fee = Expression<Int64?>("fee_paid")
static let hasChange = Expression<Bool>("has_change")
static let sentNoteCount = Expression<Int>("sent_note_count")
static let receivedNoteCount = Expression<Int>("received_note_count")
static let isShielding = Expression<Bool>("is_shielding")
static let memoCount = Expression<Int>("memo_count")
static let blockTime = Expression<Int64?>("block_time")
static let expiredUnmined = Expression<Bool?>("expired_unmined")
static let accountId = SQLite.Expression<Int>("account_id")
static let minedHeight = SQLite.Expression<BlockHeight?>("mined_height")
static let index = SQLite.Expression<Int?>("tx_index")
static let rawID = SQLite.Expression<Blob>("txid")
static let expiryHeight = SQLite.Expression<BlockHeight?>("expiry_height")
static let raw = SQLite.Expression<Blob?>("raw")
static let value = SQLite.Expression<Int64>("account_balance_delta")
static let fee = SQLite.Expression<Int64?>("fee_paid")
static let hasChange = SQLite.Expression<Bool>("has_change")
static let sentNoteCount = SQLite.Expression<Int>("sent_note_count")
static let receivedNoteCount = SQLite.Expression<Int>("received_note_count")
static let isShielding = SQLite.Expression<Bool>("is_shielding")
static let memoCount = SQLite.Expression<Int>("memo_count")
static let blockTime = SQLite.Expression<Int64?>("block_time")
static let expiredUnmined = SQLite.Expression<Bool?>("expired_unmined")
}

init(row: Row) throws {
Expand Down

0 comments on commit c77ce16

Please sign in to comment.