code: def on_connect(self):
      def regexp(a, b):
          if b is None:
              return None
          return re.search(a, b) is not None
  
      if self._get_server_version_info(None) >= (3, 9):
          # sqlite must be greater than 3.8.3 for deterministic=True
          # https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.create_function
          # the check is more conservative since there were still issues
          # with following 3.8 sqlite versions
          create_func_kw = {"deterministic": True}
      else:
          create_func_kw = {}
  
      def set_regexp(dbapi_connection):
          dbapi_connection.create_function(
              "regexp", 2, regexp, **create_func_kw
          )
  
      def floor_func(dbapi_connection):
          # NOTE: floor is optionally present in sqlite 3.35+ , however
          # as it is normally non-present we deliver floor() unconditionally
          # for now.
          # https://www.sqlite.org/lang_mathfunc.html
          dbapi_connection.create_function(
              "floor", 1, math.floor, **create_func_kw
          )
  
      fns = [set_regexp, floor_func]
  
      def connect(conn):
          for fn in fns:
              fn(conn)
  
      return connect
  
imports: import math
  import os
  import re
  from .base import DATE
  from .base import DATETIME
  from .base import SQLiteDialect
  from ...None import exc
  from ...None import pool
  from ...None import types
  from ...None import util
label_desc: Use image node_id 6 for calling the SQLiteDialect_pysqlite obj's underlying member method code with example usage: obj.on_connect() and returns: connect, unknown, None