-
Notifications
You must be signed in to change notification settings - Fork 2
SQLiteTableOperations
Jeff Hurray edited this page Apr 25, 2016
·
2 revisions
##Overview
SQLiteTableOperations exposes an interface for table operations.
##Create Table
Creates a table associated with the model if it doesn't already exist.
Executes on current thread and on background thread respectively.
static func createTable() throws -> Void
static func createTableInBackground(completion: Completion?)##Create Index
Creates a index on the model's table if it doesn't already exist.
Executes on current thread and on background thread respectively.
static func createIndex(columns: [Expressible], unique: Bool) throws -> Void
static func createIndexInBackground(columns: [Expressible], unique: Bool, completion: Completion?)##Drop Table
Drops the table associated with the model.
Executes on current thread and on background thread respectively.
static func dropTable() throws -> Void
static func dropTableInBackground(completion: Completion?)public protocol SQLiteTableOperations {
static func createTable() throws -> Void
static func createTableInBackground(completion: Completion?)
static func createIndex(columns: [Expressible], unique: Bool) throws -> Void
static func createIndexInBackground(columns: [Expressible], unique: Bool, completion: Completion?)
static func dropTable() throws -> Void
static func dropTableInBackground(completion: Completion?)
}SQLiteModel