Skip to content

how to use REGEXP #1329

@zhenghongyi

Description

@zhenghongyi
let levelPathExp = SQLite.Expression<String?>("levelPath")
tables.organizations.filter(levelPathExp.like("\(fatherLevelPath)/%"))

i use above to query my datas, it works. but when i use below, it don`t work

let levelPathExp = SQLite.Expression<String?>("levelPath")
tables.organizations.filter(levelPathExp.regexp("^\(fatherLevelPath)/[^/]+"))

the error is "no such function: REGEXP". Can anybody tell me how to use REGEXP? ths

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions