@@ -19,10 +19,11 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #import "SL3Connection.h" +#import "SL3PreparedStatement.h" #import "SL3OpenFailedException.h" @implementation SL3Connection + (instancetype)connectionWithPath: (OFString *)path @@ -67,6 +68,13 @@ { sqlite3_close(_db); [super dealloc]; } + +- (SL3PreparedStatement *)prepareStatement: (OFConstantString *)SQL +{ + return [[[SL3PreparedStatement alloc] + sl3_initWithConnection: self + SQLStatement: SQL] autorelease]; +} @end