objective-c-sql-query-builder
Public Member Functions | Static Public Member Functions | Protected Attributes
ZIMSqlTokenizer Class Reference

#import <ZIMSqlTokenizer.h>

Inheritance diagram for ZIMSqlTokenizer:
<ZIMSqlStatement>

List of all members.

Public Member Functions

(id) - initWithSqlStatement:
(id) - objectAtIndex:
(NSUInteger) - count
(NSString *) - statement
(NSUInteger) - countByEnumeratingWithState:objects:count: [implementation]

Static Public Member Functions

(BOOL) + isKeyword:

Protected Attributes

NSMutableArray * _tuples

Detailed Description

Discussion:
This class tokenizes an SQL statement.
Updated:
2011-11-03
See also:
http://www.opensource.apple.com/source/SQLite/SQLite-74/public_source/src/complete.c

Member Function Documentation

- (NSUInteger) count
Signature:
count
Discussion:
This method returns the number of objects currently in the array.
Returns:
The number of objects currently in the array.
Updated:
2011-07-13
- (NSUInteger) countByEnumeratingWithState: (NSFastEnumerationState *)  state
objects: (id __unsafe_unretained *)  buffer
count: (NSUInteger)  bufferSize 
[implementation]
- (instancetype) initWithSqlStatement: (NSString *)  sql
Signature:
initWithSqlStatement:
Discussion:
This method initialize the class with the specified SQL statement.
Parameters:
sqlThe SQL statement to be tokenized.
Returns:
An instance of this class.
Updated:
2011-07-16
See also:
http://www.sqlite.org/lang_expr.html
+ (BOOL) isKeyword: (NSString *)  token
Signature:
isKeyword:
Discussion:
This method returns a boolean indicating whether the token is a reserved keyword according to SQLite 3 standards.
Parameters:
tokenThe token to be evaluated.
Returns:
A boolean value indicating whether the token is a reserved keyword.
Updated:
2011-11-26
See also:
http://www.sqlite.org/lang_keywords.html
http://www.sqlite.org/lang_corefunc.html
http://www.sqlite.org/lang_datefunc.html
http://www.sqlite.org/lang_aggfunc.html
http://cpan.uwinnipeg.ca/htdocs/SQL-ReservedWords/SQL/ReservedWords/SQLite.pm.html
- (id) objectAtIndex: (NSUInteger)  index
Signature:
objectAtIndex:
Discussion:
This method returns the object located at index.
Parameters:
indexAn index within the bounds of the array.
Returns:
A dictionary representing the tuple.
Updated:
2011-07-13
- (NSString *) statement
Signature:
statement
Discussion:
This method will return the SQL statement.
Returns:
The SQL statement that was tokenized.
Updated:
2011-11-03

Reimplemented from <ZIMSqlStatement>.


Member Data Documentation

- (NSMutableArray*) _tuples [protected]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Properties Defines