Add documentation

FossilOrigin-Name: c78968b79b683101d6f1cc6d81e8ebfed96993428f6def8bc60a8ffb6a31fb36
This commit is contained in:
Jonathan Schleifer 2024-08-11 11:40:10 +00:00
parent 4fde495a88
commit 5c91e6f832
13 changed files with 394 additions and 35 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 Jonathan Schleifer <js@nil.im>
* Copyright (c) 2020, 2024 Jonathan Schleifer <js@nil.im>
*
* https://fl.nil.im/objsqlite3
*
@ -70,16 +70,17 @@
[super dealloc];
}
- (SL3PreparedStatement *)prepareStatement: (OFConstantString *)SQL
- (SL3PreparedStatement *)prepareStatement: (OFConstantString *)SQLStatement
{
return [[[SL3PreparedStatement alloc]
sl3_initWithConnection: self
SQLStatement: SQL] autorelease];
SQLStatement: SQLStatement] autorelease];
}
- (void)executeStatement: (OFConstantString *)SQL
- (void)executeStatement: (OFConstantString *)SQLStatement
{
int code = sqlite3_exec(_conn, SQL.UTF8String, NULL, NULL, NULL);
int code =
sqlite3_exec(_conn, SQLStatement.UTF8String, NULL, NULL, NULL);
if (code != SQLITE_OK)
@throw [SL3ExecuteStatementFailedException