-
Notifications
You must be signed in to change notification settings - Fork 1
/
SLDatabase.h
43 lines (32 loc) · 852 Bytes
/
SLDatabase.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// SLDatabase.h
//
// Copyright 2008 Steven Fisher.
//
// This file is covered by the MIT/X11 License.
// See LICENSE.TXT for more information.
//
#import <Foundation/Foundation.h>
#import <sqlite3.h>
@class SLStmt;
/** @class SLDatabase
@brief SQLite database.
Objetive-C wrapper for sqlite3*. */
@interface SLDatabase : NSObject {
sqlite3 *dtbs;
int extendedErr;
const char *msg;
}
/** Pointer to sqlite3 database. */
@property (readonly) sqlite3 *dtbs;
/** Result of last command. */
@property (readonly) int extendedErr;
/** Result of last command. */
@property (readonly) int simpleErr;
/** Allocate a new, autoreleased SLDatabase. */
+ (id)databaseWithPath: (NSString *)inPath;
/** Initialize a new SLDatabase. */
- (id)initWithPath: (NSString *)inPath;
- (BOOL)execSQL: (NSString *)inSQL;
- (long long)lastInserted;
@end