Table
public final class Table<Root: TableCodable>: CoreRepresentableConvenient table interface
- 
                  
                  The tag of the related database. DeclarationSwift public var tag: Tag?
- 
                  
                  The path of the related database. DeclarationSwift public var path: String
- 
                  
                  Table name DeclarationSwift public let name: String
- 
                  
                  Table related type DeclarationSwift public var rootType: Root.Type
- 
                  
                  Execute inserting with TableCodableobject on specific(or all) propertiesNote that it will run embedded transaction while objects.count>1. 
 The embedded transaction means that it will run a transaction if it’s not in other transaction, otherwise it will be executed within the existing transaction.Throws ErrorDeclarationSwift public func insert(objects: [Object], on propertyConvertibleList: [PropertyConvertible]? = nil) throwsParametersobjectsTable encodable object propertyConvertibleListPropertyorCodingTableKeylist
- 
                  
                  Execute inserting or replacing with TableCodableobject on specific(or all) properties.
 It will replace the original row while they have same primary key or row id.Note that it will run embedded transaction while objects.count>1. 
 The embedded transaction means that it will run a transaction if it’s not in other transaction, otherwise it will be executed within the existing transaction.Throws ErrorDeclarationSwift public func insertOrReplace(objects: [Object], on propertyConvertibleList: [PropertyConvertible]? = nil) throwsParametersobjectsTable encodable object propertyConvertibleListPropertyorCodingTableKeylist
- 
                  
                  Execute inserting with TableCodableobject on specific(or all) propertiesNote that it will run embedded transaction while objects.count>1. 
 The embedded transaction means that it will run a transaction if it’s not in other transaction, otherwise it will be executed within the existing transaction.Throws ErrorDeclarationSwift public func insert(objects: Object..., on propertyConvertibleList: [PropertyConvertible]? = nil) throwsParametersobjectsTable encodable object propertyConvertibleListPropertyorCodingTableKeylist
- 
                  
                  Execute inserting or replacing with TableCodableobject on specific(or all) properties.
 It will replace the original row while they have same primary key or row id.Note that it will run embedded transaction while objects.count>1. 
 The embedded transaction means that it will run a transaction if it’s not in other transaction, otherwise it will be executed within the existing transaction.Throws ErrorDeclarationSwift public func insertOrReplace(objects: Object..., on propertyConvertibleList: [PropertyConvertible]? = nil) throwsParametersobjectsTable encodable object propertyConvertibleListPropertyorCodingTableKeylist
- 
                  
                  Execute updating with TableCodableobject on specific(or all) properties.Throws ErrorDeclarationSwift public func update(on propertyConvertibleList: [PropertyConvertible], with object: Object, where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, limit: Limit? = nil, offset: Offset? = nil) throwsParameterspropertyConvertibleListPropertyorCodingTableKeylistobjectTable encodable object conditionExpression convertible orderListExpression convertible list limitExpression convertible offsetExpression convertible 
- 
                  
                  Execute updating with TableCodableobject on specific(or all) properties.Throws ErrorDeclarationSwift public func update(on propertyConvertibleList: PropertyConvertible..., with object: Object, where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, limit: Limit? = nil, offset: Offset? = nil) throwsParameterspropertyConvertibleListPropertyorCodingTableKeylistobjectTable encodable object conditionExpression convertible orderListExpression convertible list limitExpression convertible offsetExpression convertible 
- 
                  
                  Execute updating with row on specific(or all) properties. Throws ErrorDeclarationSwift public func update(on propertyConvertibleList: PropertyConvertible..., with row: [ColumnEncodableBase], where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, limit: Limit? = nil, offset: Offset? = nil) throwsParameterspropertyConvertibleListPropertyorCodingTableKeylistobjectTable encodable object conditionExpression convertible orderListExpression convertible list limitExpression convertible offsetExpression convertible 
- 
                  
                  Execute updating with row on specific(or all) properties. Throws ErrorDeclarationSwift public func update(on propertyConvertibleList: [PropertyConvertible], with row: [ColumnEncodableBase], where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, limit: Limit? = nil, offset: Offset? = nil) throwsParameterspropertyConvertibleListPropertyorCodingTableKeylistobjectTable encodable object conditionExpression convertible orderListExpression convertible list limitExpression convertible offsetExpression convertible 
- 
                  
                  Execute deleting Throws ErrorDeclarationSwift public func delete(where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, limit: Limit? = nil, offset: Offset? = nil) throwsParametersconditionExpression convertible orderListExpression convertible list limitExpression convertible offsetExpression convertible 
- 
                  
                  Get objects on specific(or all) properties Throws ErrorDeclarationSwift public func getObjects(on propertyConvertibleList: [PropertyConvertible], where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, limit: Limit? = nil, offset: Offset? = nil) throws -> [Object]ParameterspropertyConvertibleListPropertyorCodingTableKeylistconditionExpression convertible orderListExpression convertible list limitExpression convertible offsetExpression convertible Return ValueTable decodable objects 
- 
                  
                  Get objects on specific(or all) properties Throws ErrorDeclarationSwift public func getObjects(on propertyConvertibleList: PropertyConvertible..., where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, limit: Limit? = nil, offset: Offset? = nil) throws -> [Object]ParameterspropertyConvertibleListPropertyorCodingTableKeylistconditionExpression convertible orderListExpression convertible list limitExpression convertible offsetExpression convertible Return ValueTable decodable objects 
- 
                  
                  Get object on specific(or all) properties Throws ErrorDeclarationSwift public func getObject(on propertyConvertibleList: [PropertyConvertible], where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, offset: Offset? = nil) throws -> Object?ParameterspropertyConvertibleListPropertyorCodingTableKeylistconditionExpression convertible orderListExpression convertible list offsetExpression convertible Return ValueTable decodable objects 
- 
                  
                  Get object on specific(or all) properties Throws ErrorDeclarationSwift public func getObject(on propertyConvertibleList: PropertyConvertible..., where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, offset: Offset? = nil) throws -> Object?ParameterspropertyConvertibleListPropertyorCodingTableKeylistconditionExpression convertible orderListExpression convertible list offsetExpression convertible Return ValueTable decodable objects 
- 
                  
                  Get rows by specific selecting Throws ErrorDeclarationSwift public func getRows(on columnResultConvertibleList: [ColumnResultConvertible], where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, limit: Limit? = nil, offset: Offset? = nil) throws -> FundamentalRowXColumnParameterscolumnResultConvertibleListWINQ column result list conditionExpression convertible orderListExpression convertible list limitExpression convertible offsetExpression convertible Return ValueFundamentalRowXColumn
- 
                  
                  Get rows by specific selecting Throws ErrorDeclarationSwift public func getRows(on columnResultConvertibleList: ColumnResultConvertible..., where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, limit: Limit? = nil, offset: Offset? = nil) throws -> FundamentalRowXColumnParameterscolumnResultConvertibleListWINQ column result list conditionExpression convertible orderListExpression convertible list limitExpression convertible offsetExpression convertible Return ValueFundamentalRowXColumn
- 
                  
                  Get row by specific selecting Throws ErrorDeclarationSwift public func getRow(on columnResultConvertibleList: ColumnResultConvertible..., where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, offset: Offset? = nil) throws -> FundamentalRowParameterscolumnResultConvertibleListWINQ column result list conditionExpression convertible orderListExpression convertible list offsetExpression convertible Return ValueFundamentalRowXColumn
- 
                  
                  Get row by specific selecting Throws ErrorDeclarationSwift public func getRow(on columnResultConvertibleList: [ColumnResultConvertible], where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, offset: Offset? = nil) throws -> FundamentalRowParameterscolumnResultConvertibleListWINQ column result list conditionExpression convertible orderListExpression convertible list offsetExpression convertible Return ValueFundamentalRowXColumn
- 
                  
                  Get column by specific selecting Throws ErrorDeclarationSwift public func getColumn(on result: ColumnResultConvertible, where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, limit: Limit? = nil, offset: Offset? = nil) throws -> FundamentalColumnParameterscolumnResultConvertibleWINQ column result conditionExpression convertible orderListExpression convertible list limitExpression convertible offsetExpression convertible Return ValueFundamentalColumn
- 
                  
                  Get distinct column by specific selecting Throws ErrorDeclarationSwift public func getDistinctColumn(on result: ColumnResultConvertible, where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, limit: Limit? = nil, offset: Offset? = nil) throws -> FundamentalColumnParameterscolumnResultConvertibleWINQ column result conditionExpression convertible orderListExpression convertible list limitExpression convertible offsetExpression convertible Return ValueFundamentalColumn
- 
                  
                  Get value by specific selecting Throws ErrorDeclarationSwift public func getValue(on result: ColumnResultConvertible, where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, limit: Limit? = nil, offset: Offset? = nil) throws -> FundamentalValueParameterscolumnResultConvertibleWINQ column result conditionExpression convertible orderListExpression convertible list offsetExpression convertible Return ValueFundamentalValue
- 
                  
                  Get distinct value by specific selecting Throws ErrorDeclarationSwift public func getDistinctValue(on result: ColumnResultConvertible, where condition: Condition? = nil, orderBy orderList: [OrderBy]? = nil, limit: Limit? = nil, offset: Offset? = nil) throws -> FundamentalValueParameterscolumnResultConvertibleWINQ column result conditionExpression convertible orderListExpression convertible list offsetExpression convertible Return ValueFundamentalValue
 View on GitHub
View on GitHub Install in Dash
Install in Dash Table Class Reference
        Table Class Reference