SQLiteDB
public class SQLiteDB : NSObject
SQLiteDB
-
Generates statement
Throws
SQLiteErrorDeclaration
Swift
public func generateStmt(statement: String) throws -> StatementParameters
statementstatement 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) throwsParameters
appGroupsecurity application group identifier
prefixfile path prefix
userIdentifieruser identifier
namedb file name
-
Executes statement without output values
Throws
SQLiteErrorDeclaration
Swift
public func executeNoResult(statement: String) throwsParameters
statementstatement
-
Executes statement without output values
Throws
SQLiteErrorDeclaration
Swift
public func executeNoResult(statement: Statement) throwsParameters
statementstatement string
-
Executes statement with output values
Throws
SQLiteErrorDeclaration
Swift
public func executeStep(statement: Statement) throws -> BoolParameters
statementstatement
Return Value
Returns true if output values are available
-
Binds input argument
Throws
SQLiteErrorDeclaration
Parameters
stmtstatement
indexindex of input argument
valuevalue of input argument
-
Binds output values
Declaration
Swift
public func bindOut<T>(stmt: Statement, index: Int32) -> T? where T : DbOutValueParameters
stmtstatement
indexoutput value
Return Value
-
Bind arguments
Throws
SQLiteErrorParameters
stmtstatement
valuevalue to bind
-
Bind arguments
Throws
SQLiteErrorDeclaration
Parameters
stmtstatement
value1value1 to bind
value2value2 to bind
-
Bind arguments
Throws
SQLiteErrorDeclaration
Parameters
stmtstatement
value1value1 to bind
value2value2 to bind
value3value3 to bind
-
Bind arguments
Throws
SQLiteErrorDeclaration
Parameters
stmtstatement
value1value1 to bind
value2value2 to bind
value3value3 to bind
value4value4 to bind
-
Bind arguments
Throws
SQLiteErrorDeclaration
Parameters
stmtstatement
value1value1 to bind
value2value2 to bind
value3value3 to bind
value4value4 to bind
value5value5 to bind
-
Bind arguments
Throws
SQLiteErrorDeclaration
Parameters
stmtstatement
value1value1 to bind
value2value2 to bind
value3value3 to bind
value4value4 to bind
value5value5 to bind
value6value6 to bind
-
Bind output
Throws
SQLiteErrorDeclaration
Swift
func bindOut <T>(stmt: Statement) throws -> T? where T: DbOutValueParameters
stmtstatement
Return Value
output value
-
Bind output
Throws
SQLiteErrorDeclaration
Swift
func bindOut <T1, T2> (stmt: Statement) throws -> (T1?, T2?) where T1: DbOutValue, T2: DbOutValueParameters
stmtstatement
Return Value
output values tuple
-
Bind output
Throws
SQLiteErrorDeclaration
Swift
func bindOut <T1, T2, T3> (stmt: Statement) throws -> (T1?, T2?, T3?) where T1: DbOutValue, T2: DbOutValue, T3: DbOutValueParameters
stmtstatement
Return Value
output values tuple
-
Bind output
Throws
SQLiteErrorDeclaration
Swift
func bindOut <T1, T2, T3, T4> (stmt: Statement) throws -> (T1?, T2?, T3?, T4?) where T1: DbOutValue, T2: DbOutValue, T3: DbOutValue, T4: DbOutValueParameters
stmtstatement
Return Value
output values tuple
-
Bind output
Throws
SQLiteErrorDeclaration
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: DbOutValueParameters
stmtstatement
Return Value
output values tuple
-
Bind output
Throws
SQLiteErrorDeclaration
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: DbOutValueParameters
stmtstatement
Return Value
output values tuple
SQLiteDB Class Reference