jeudi 7 avril 2016

Use of undeclared type 'Sqlite3' and Use of undeclared type Sqlite3_stmt in Swift [duplicate]

This question already has an answer here:

I am new for iOS and I had been Implement Sqlite Database in my Swift project so I added suitable frameworks for sqlite and added header files in Bridging Header but in coding area I have a errors so I unable to clear the errors please help me for find that errors.

I post my code of what I am tried, Thanks..

import Foundation

var database: sqlite3   //---->This line error shows

var compiledStatement: sqlite3_stmt   //---->This line error shows

let sqlStatement: Character? = nil


func openDatabase() {
}

func databasePath() -> NSString
{
let documentPaths: NSArray = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)
let documentDirectory: NSString = documentPaths.objectAtIndex(0) as! NSString
let path: NSString = documentDirectory.stringByAppendingPathComponent(kAppDataBaseName)
NSLog("Path = %@", documentPaths)
return path

}

func inserINTOTable(Query: NSString, values arrayOfValues: NSArray) {
}
func deleteContacts()
{

}

Aucun commentaire:

Enregistrer un commentaire