RBSQLiteTableSchema Class Reference

Inherits from NSObject
Declared in RBSQLiteTableSchema.h

Overview

Describes a SQLite table.

  name

The table name.

@property (nonatomic, readonly, nonnull) NSString *name

Declared In

RBSQLiteTableSchema.h

  fields

An array of RBSQLiteFieldSchema objects that describe the table columns.

@property (nonatomic, readonly, nonnull) NSArray<RBSQLiteFieldSchema*> *fields

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 RBSQLiteFieldSchema objects.

Return Value

A newly initialized RBSQLiteTableSchema object representing 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.

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.

Declared In

RBSQLiteTableSchema.h