SQLite.swift icon indicating copy to clipboard operation
SQLite.swift copied to clipboard

about glob function, may need an field on right

Open coder-free opened this issue 2 years ago • 0 comments

current:


    /// Builds a copy of the expression appended with a `GLOB` query against the
    /// given pattern.
    ///
    ///     let path = Expression<String?>("path")
    ///     path.glob("*.png")
    ///     // "path" GLOB '*.png'
    ///
    /// - Parameter pattern: A pattern to match.
    ///
    /// - Returns: A copy of the expression appended with a `GLOB` query against
    ///   the given pattern.
    public func glob(_ pattern: String) -> Expression<Bool?> {
        Function.glob.infix(self, pattern)
    }

field on right, may rglob:


    /// Builds a copy of the expression appended with a `GLOB` query against the
    /// given pattern.
    ///
    ///     let path = Expression<String?>("path")
    ///     path.rglob("*.png")
    ///     // '*.png' GLOB "path"
    ///
    /// - Parameter pattern: A pattern to match.
    ///
    /// - Returns: A copy of the expression appended with a `GLOB` query against
    ///   the given pattern.
    public func rglob(_ pattern: String) -> Expression<Bool?> {
        Function.glob.infix(pattern, self)
    }

coder-free avatar Mar 25 '23 04:03 coder-free