Results 1 to 14 of 14

Thread: How to enable REGEX for RC6 SQLite?

Hybrid View

  1. #1
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    5,277

    Re: How to enable REGEX for RC6 SQLite?

    Quote Originally Posted by SearchingDataOnly View Post
    What Olaf is talking about RegEx doesn't seem to be just for sqlite-db. I guess he wanted to develop a generic RegEx engine that could replace JS.RegEx, which is exactly what many of us were expecting.
    Might be, but wouldn't have anything to do with OP's question.
    OP's question is about using the REGEXP-Operator/Function within SQL-Statements.
    And in DB Browser's case i'd guess they compiled the extension and linked it statically into DB Browser itself (not into sqlite3.dll!), but "load" it into the engine on startup
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

  2. #2
    Frenzied Member
    Join Date
    Aug 2020
    Posts
    1,865

    Re: How to enable REGEX for RC6 SQLite?

    Quote Originally Posted by Zvoni View Post
    Might be, but wouldn't have anything to do with OP's question.
    OP's question is about using the REGEXP-Operator/Function within SQL-Statements.
    And in DB Browser's case i'd guess they compiled the extension and linked it statically into DB Browser itself (not into sqlite3.dll!), but "load" it into the engine on startup
    I seem to remember that RC6 could use VB6 functions as custom functions for sqlite.

  3. #3
    PowerPoster Zvoni's Avatar
    Join Date
    Sep 2012
    Location
    To the moon and then left
    Posts
    5,277

    Re: How to enable REGEX for RC6 SQLite?

    Quote Originally Posted by SearchingDataOnly View Post
    I seem to remember that RC6 could use VB6 functions as custom functions for sqlite.
    No idea, since i never used RC6, but wouldn't surprise me, since SQLite offers to use custom Functions --> https://www.sqlite.org/appfunc.html
    Applications that use SQLite can define custom SQL functions that call back into application code to compute their results. The custom SQL function implementations can be embedded in the application code itself, or can be loadable extensions.
    since SQLite is written in C, it's probable that the "off-the-shelf" dll's are compile with cdecl.
    I seem to remember Olaf mentioning compiling SQLite with stdcall for RichClient, so AddressOf should work
    Last edited by Zvoni; Tomorrow at 31:69 PM.
    ----------------------------------------------------------------------------------------

    One System to rule them all, One Code to find them,
    One IDE to bring them all, and to the Framework bind them,
    in the Land of Redmond, where the Windows lie
    ---------------------------------------------------------------------------------
    People call me crazy because i'm jumping out of perfectly fine airplanes.
    ---------------------------------------------------------------------------------
    Code is like a joke: If you have to explain it, it's bad

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width