SQLiteDB
public class SQLiteDB : NSObject
SQLiteDB
-
Generates statement
Throws
SQLiteErrorDeclaration
Swift
public func generateStmt(statement: String) throws -> Statement
Parameters
statement
statement string
Return Value
generated statement
-
DB file path
Declaration
Swift
public let path: String
-
Init
Throws
- SQLiteError
- Rethrows from
FileManager
Declaration
Swift
public init(appGroup: String?, prefix: String, userIdentifier: String, name: String) throws
Parameters
appGroup
security application group identifier
prefix
file path prefix
userIdentifier
user identifier
name
db file name
-
Executes statement without output values
Throws
SQLiteError
Declaration
Swift
public func executeNoResult(statement: String) throws
Parameters
statement
statement
-
Executes statement without output values
Throws
SQLiteError
Declaration
Swift
public func executeNoResult(statement: Statement) throws
Parameters
statement
statement string
-
Executes statement with output values
Throws
SQLiteError
Declaration
Swift
public func executeStep(statement: Statement) throws -> Bool
Parameters
statement
statement
Return Value
Returns true if output values are available
-
Binds input argument
Throws
SQLiteError
Declaration
Parameters
stmt
statement
index
index of input argument
value
value of input argument
-
Binds output values
Declaration
Swift
public func bindOut<T>(stmt: Statement, index: Int32) -> T? where T : DbOutValue
Parameters
stmt
statement
index
output value
Return Value
-
Bind arguments
Throws
SQLiteError
Parameters
stmt
statement
value
value to bind
-
Bind arguments
Throws
SQLiteError
Declaration
Parameters
stmt
statement
value1
value1 to bind
value2
value2 to bind
-
Bind arguments
Throws
SQLiteError
Declaration
Parameters
stmt
statement
value1
value1 to bind
value2
value2 to bind
value3
value3 to bind
-
Bind arguments
Throws
SQLiteError
Declaration
Parameters
stmt
statement
value1
value1 to bind
value2
value2 to bind
value3
value3 to bind
value4
value4 to bind
-
Bind arguments
Throws
SQLiteError
Declaration
Parameters
stmt
statement
value1
value1 to bind
value2
value2 to bind
value3
value3 to bind
value4
value4 to bind
value5
value5 to bind
-
Bind arguments
Throws
SQLiteError
Declaration
Parameters
stmt
statement
value1
value1 to bind
value2
value2 to bind
value3
value3 to bind
value4
value4 to bind
value5
value5 to bind
value6
value6 to bind
-
Bind output
Throws
SQLiteError
Declaration
Swift
func bindOut <T>(stmt: Statement) throws -> T? where T: DbOutValue
Parameters
stmt
statement
Return Value
output value
-
Bind output
Throws
SQLiteError
Declaration
Swift
func bindOut <T1, T2> (stmt: Statement) throws -> (T1?, T2?) where T1: DbOutValue, T2: DbOutValue
Parameters
stmt
statement
Return Value
output values tuple
-
Bind output
Throws
SQLiteError
Declaration
Swift
func bindOut <T1, T2, T3> (stmt: Statement) throws -> (T1?, T2?, T3?) where T1: DbOutValue, T2: DbOutValue, T3: DbOutValue
Parameters
stmt
statement
Return Value
output values tuple
-
Bind output
Throws
SQLiteError
Declaration
Swift
func bindOut <T1, T2, T3, T4> (stmt: Statement) throws -> (T1?, T2?, T3?, T4?) where T1: DbOutValue, T2: DbOutValue, T3: DbOutValue, T4: DbOutValue
Parameters
stmt
statement
Return Value
output values tuple
-
Bind output
Throws
SQLiteError
Declaration
Swift
func bindOut <T1, T2, T3, T4, T5> (stmt: Statement) throws -> (T1?, T2?, T3?, T4?, T5?) where T1: DbOutValue, T2: DbOutValue, T3: DbOutValue, T4: DbOutValue, T5: DbOutValue
Parameters
stmt
statement
Return Value
output values tuple
-
Bind output
Throws
SQLiteError
Declaration
Swift
func bindOut <T1, T2, T3, T4, T5, T6> (stmt: Statement) throws -> (T1?, T2?, T3?, T4?, T5?, T6?) where T1: DbOutValue, T2: DbOutValue, T3: DbOutValue, T4: DbOutValue, T5: DbOutValue, T6: DbOutValue
Parameters
stmt
statement
Return Value
output values tuple