Closed SieczkowskiAL closed 3 years ago
Because your db
object is defined in the do
structure, you need to wrap everything in it (db
is created in it so stays in it)
do {
let db = try Connection("financeiro.db")
// Move your code here
let users = Table("users")
// ...
} catch {
print (error)
}
Hi,
Error in example ... how correct ?