FMStatement

@interface FMStatement : NSObject {
  void *_statement;
  NSString *_query;
  long _useCount;
  BOOL _inUse;
}

Objective-C wrapper for sqlite3_stmt

This is a wrapper for a SQLite sqlite3_stmt . Generally when using FMDB you will not need to interact directly with FMStatement, but rather with FMDatabase and FMResultSet only.

See also

  • Undocumented

    Declaration

    Objective-C

    void *_statement
  • Undocumented

    Declaration

    Objective-C

    NSString *_query
  • Undocumented

    Declaration

    Objective-C

    long _useCount
  • Undocumented

    Declaration

    Objective-C

    BOOL _inUse

Properties

  • Usage count

    Declaration

    Objective-C

    @property long useCount;

    Swift

    var useCount: Int { get set }
  • SQL statement

    Declaration

    Objective-C

    @property (retain) NSString *_Nonnull query;

    Swift

    var query: String { get set }
  • SQLite sqlite3_stmt

    Declaration

    Objective-C

    @property void *_Nonnull statement;

    Swift

    var statement: UnsafeMutableRawPointer { get set }
  • Indication of whether the statement is in use

    Declaration

    Objective-C

    @property BOOL inUse;

    Swift

    var inUse: Bool { get set }

Closing and Resetting

  • Close statement

    Declaration

    Objective-C

    - (void)close;

    Swift

    func close()
  • Reset statement

    Declaration

    Objective-C

    - (void)reset;

    Swift

    func reset()