Skip to content

SQLiteConvertible

Jeff Hurray edited this page May 3, 2016 · 4 revisions

##Overview

SQLiteConvertible allows customization for the setup of a database in relation to a model.

##Table Name of the table in the database. Override for custom table name. Can be used for creating custom queries.

static var tableName : String {get}

##Connection An optional override to supply a database connection for the table. Defaults to a shared database connection supplied by the framework that connects to a database on Disk.

static var connection: Database {get}

public protocol SQLiteConvertible: SQLiteModelAbstract {
    static var tableName: String {get}
    static var connection: Database {get}
}
Clone this wiki locally