

def _add_conn_hooks(self, conn):
    self._set_pragmas(conn)
    self.create_function('date_part', 2, _sqlite_date_part)
    conn.create_function('date_trunc', 2, _sqlite_date_trunc)
    conn.create_function('regexp', 2, _sqlite_regexp)

dataset/ETHPy150Open coleifer/peewee/peewee.py SqliteDatabase._add_conn_hooks/VarMisuse@19/26 `conn`->`self`