21 lines
373 B
Swift
21 lines
373 B
Swift
//
|
|
// Zatoshi+SQLite.swift
|
|
//
|
|
//
|
|
// Created by Francisco Gindre on 6/20/22.
|
|
//
|
|
|
|
import SQLite
|
|
|
|
extension Zatoshi: Value {
|
|
public static var declaredDatatype = Int64.declaredDatatype
|
|
|
|
public static func fromDatatypeValue(_ datatypeValue: Int64) -> Zatoshi {
|
|
Zatoshi(datatypeValue)
|
|
}
|
|
|
|
public var datatypeValue: Int64 {
|
|
self.amount
|
|
}
|
|
}
|