Index

RBSQLiteFieldSchema.h

Classes


RBSQLiteFieldSchema

Describes a SQLite table column.

Properties

The field name, corresponds to the SQLite column name.
public name NSString { get }

The data type.
public type RBSQLiteFieldType { get }

Determines if the null values are allowed for this field in the corresponding SQLite column.
public allowsNull Bool { get }

Determines if this field should autoincrement, in this case the field type should be an integer.
public autoincrement Bool { get }

Determines if this is the primary key field.
public isPrimaryKey Bool { get }

Functions

Initializes a new RBSQLiteFieldSchema object that describes a SQLite table column.
@param name : The name of the field, corresponds to the SQLite column name.
@param type : The data type of this field.
@param allowsNull : Set to YES to allow null values to be used in the corresponding SQLite column.
@returns A newly initialized and populated RBSQLiteFieldSchema object.
- (nonnull instancetype)initWithName:(nonnull NSString *)name

Initializes a new RBSQLiteFieldSchema object that describes the primary key column for an SQLite table.
@param name : The name of the field, corresponds to the SQLite column name.
@param type : The data type of this field.
@returns A newly initialized and populated RBSQLiteFieldSchema object.
- (nonnull instancetype)initPrimaryKeyWithName:(nonnull NSString *)name