RBSQLiteTableSchema Class Reference
Inherits from | NSObject |
---|---|
Declared in | RBSQLiteTableSchema.h |
name
The table name.
@property (nonatomic, readonly, nonnull) NSString *name
Discussion
The table name.
Declared In
RBSQLiteTableSchema.h
fields
An array of RBSQLiteFieldSchema
objects that describe the table columns.
@property (nonatomic, readonly, nonnull) NSArray<RBSQLiteFieldSchema*> *fields
Discussion
An array of RBSQLiteFieldSchema
objects that describe the table columns.
Declared In
RBSQLiteTableSchema.h
– initWithName:fields:
Initializes a new RBSQLiteTableSchema
object that describes a SQLite table.
- (nonnull instancetype)initWithName:(nonnull NSString *)name fields:(nonnull NSArray<RBSQLiteFieldSchema*> *)fields
Parameters
name |
The table name. |
---|---|
fields |
An array of |
Return Value
A newly initialized RBSQLiteTableSchema
object representing a SQLite table.
Discussion
Initializes a new RBSQLiteTableSchema
object that describes a SQLite table.
Declared In
RBSQLiteTableSchema.h
– fieldWithName:
Retrieve the RBSQLiteFieldSchema
for a specific field (SQLite column).
- (nonnull RBSQLiteFieldSchema *)fieldWithName:(nonnull NSString *)fieldName
Parameters
fieldName |
The name of the field to return. |
---|
Return Value
Returns a RBSQLiteFieldSchema
for the given field name.
Discussion
Retrieve the RBSQLiteFieldSchema
for a specific field (SQLite column).
Declared In
RBSQLiteTableSchema.h
– createTableQueryString
Creates a SQL query that can be used to create the SQLite table described by this RBSQLiteTableSchema
instance.
- (nonnull NSString *)createTableQueryString
Return Value
A formatted SQL CREATE TABLE query.
Discussion
Creates a SQL query that can be used to create the SQLite table described by this RBSQLiteTableSchema
instance.
Declared In
RBSQLiteTableSchema.h