Closed Gaozn closed 3 years ago
try! DBConnection.Constant.db.run(tblVehicles.create(ifNotExists: true) { t in t.column(id, primaryKey: true) t.column(name) t.column(company, unique: true) })
As @icodeuridevice showed, you can create a table if it doesn't exist yet.
rt