#import <ZIMSqlAlterTableStatement.h>
List of all members.
Detailed Description
- Discussion:
- This class represents an SQL alter table statement.
- Updated:
- 2012-03-18
- See also:
- http://www.sqlite.org/lang_altertable.html
Member Function Documentation
- (void) autoincrement: |
|
(NSUInteger) |
position |
|
- Signature:
- column:type:
- Discussion:
- This method will create a column with the specified parameters.
- Parameters:
-
column | The column to be created. |
type | The datatype of the column. |
- Updated:
- 2011-10-30
- Signature:
- column:type:defaultValue:
- Discussion:
- This method will create a column with the specified parameters.
- Parameters:
-
column | The column to be created. |
type | The datatype of the column. |
value | The default value to be used when no data is provided. |
- Updated:
- 2011-10-30
- (void) column: |
|
(NSString *) |
column |
type: |
|
(NSString *) |
type |
primaryKey: |
|
(BOOL) |
primaryKey |
|
|
| |
- Signature:
- column:type:primaryKey:
- Discussion:
- This method will create a column with the specified parameters.
- Parameters:
-
column | The column to be created. |
type | The datatype of the column. |
primaryKey | This marks the specified column as the primary key. |
- Updated:
- 2011-10-30
- (void) column: |
|
(NSString *) |
column |
type: |
|
(NSString *) |
type |
unique: |
|
(BOOL) |
unique |
|
|
| |
- Signature:
- column:type:unique:
- Discussion:
- This method will create a column with the specified datatype. It also provides the option to ensure that all values in the column are distinct.
- Parameters:
-
column | The column to be created. |
type | The datatype of the column. |
unique | This constrains the column to only unique values. |
- Updated:
- 2011-10-30
- Signature:
- init
- Discussion:
- This method initializes the class.
- Returns:
- An instance of this class.
- Updated:
- 2012-03-20
- (instancetype) initWithXmlSchema: |
|
(NSData *) |
before |
withChanges: |
|
(NSData *) |
after |
error: |
|
(NSError **) |
error |
|
|
| |
- Signature:
- initWithXmlSchema:withChanges:error:
- Discussion:
- This method initializes the class via an XML file following Ziminji's "XML to DDL" schema.
- Parameters:
-
before | The UTF-8 encoded string of XML. |
after | The UTF-8 encoded string of XML with the changes. |
error | Used when an error occurs while processing the XML data. May be NULL. |
- Returns:
- An instance of this class.
- Updated:
- 2011-10-19
- See also:
- http://db.apache.org/ddlutils/
-
http://db.apache.org/ddlutils/schema/
- (void) load |
|
|
[implementation] |
- (void) parser: |
|
(NSXMLParser *) |
parser |
didEndElement: |
|
(NSString *) |
element |
namespaceURI: |
|
(NSString *) |
namespaceURI |
qualifiedName: |
|
(NSString *) |
qualifiedName |
|
|
| [implementation] |
- (void) parser: |
|
(NSXMLParser *) |
parser |
didStartElement: |
|
(NSString *) |
element |
namespaceURI: |
|
(NSString *) |
namespaceURI |
qualifiedName: |
|
(NSString *) |
qualifiedName |
attributes: |
|
(NSDictionary *) |
attributes |
|
|
| [implementation] |
- (void) parser: |
|
(NSXMLParser *) |
parser |
parseErrorOccurred: |
|
(NSError *) |
error |
|
|
| [implementation] |
- Signature:
- rename:
- Discussion:
- This method will set the table used in the SQL statement.
- Parameters:
-
table | The table that will be used in the SQL statement. |
- Updated:
- 2011-10-30
- Signature:
- statement
- Discussion:
- This method will return the SQL statement.
- Returns:
- The SQL statement that was constructed.
- Updated:
- 2011-10-30
Reimplemented from <ZIMSqlStatement>.
- Signature:
- table:
- Discussion:
- This method will set the table used in the SQL statement.
- Parameters:
-
table | The table that will be used in the SQL statement. |
- Updated:
- 2011-10-30
Member Data Documentation
- (NSError*) _error [protected] |
- (NSMutableDictionary*) _schema [protected] |
- (NSMutableArray*) _stack [protected] |
The documentation for this class was generated from the following files: