Refactor entire codebase and rewrite documentation

This commit is contained in:
2025-10-10 18:06:34 +03:00
parent b4e9755c15
commit 8e471f2b9f
74 changed files with 3405 additions and 4149 deletions

View File

@@ -13,7 +13,7 @@ extension Function {
/// )
/// try connection.add(function: Function.Regexp.self)
///
/// try connection.execute(sql: """
/// try connection.execute(raw: """
/// SELECT * FROM users WHERE name REGEXP 'John.*';
/// """)
/// ```
@@ -64,8 +64,8 @@ extension Function {
/// - Throws: ``Error/invalidArguments`` if the arguments are invalid or missing.
/// - Throws: ``Error/regexError(_:)`` if an error occurs during regex evaluation.
public override class func invoke(
args: Arguments
) throws -> SQLiteRawRepresentable? {
args: any ArgumentsProtocol
) throws -> SQLiteRepresentable? {
guard let regex = args[0] as String?,
let value = args[1] as String?
else { throw Error.invalidArguments }