Remove SQLScript
This commit is contained in:
@@ -203,8 +203,8 @@ extension Connection: ConnectionProtocol {
|
||||
try Statement(db: connection, sql: query, options: options)
|
||||
}
|
||||
|
||||
public func execute(raw sql: String) throws(SQLiteError) {
|
||||
let status = sqlite3_exec(connection, sql, nil, nil, nil)
|
||||
public func execute(sql script: String) throws(SQLiteError) {
|
||||
let status = sqlite3_exec(connection, script, nil, nil, nil)
|
||||
guard status == SQLITE_OK else { throw SQLiteError(connection) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ extension Function {
|
||||
/// )
|
||||
/// try connection.add(function: Function.Regexp.self)
|
||||
///
|
||||
/// try connection.execute(raw: """
|
||||
/// try connection.execute(sql: """
|
||||
/// SELECT * FROM users WHERE name REGEXP 'John.*';
|
||||
/// """)
|
||||
/// ```
|
||||
|
||||
Reference in New Issue
Block a user