Remove SQLScript
This commit is contained in:
parent
954062f6c6
commit
835f7ee380
13 changed files with 16 additions and 1598 deletions
|
|
@ -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.*';
|
||||
/// """)
|
||||
/// ```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue