def to_sqlite3(self, conn, target, *args, **kwargs):
        insert_regex = re.compile(r'(insert|update)\s+into', flags=re.IGNORECASE)
        if insert_regex.match(target):
            insert_f = self._to_sqlite3_by_query
        else:
            insert_f = self._to_sqlite3_by_table

        if isinstance(conn, (sqlite3.Connection, sqlite3.Cursor)):
            insert_f(conn, target)
            conn.commit()
        elif isinstance(conn, str):
            with sqlite3.connect(conn, *args, **kwargs) as input_conn:
                insert_f(input_conn, target)
                input_conn.commit()
        else:
            raise ValueError('conn must be a must be a file path or sqlite3 Connection/Cursor')
Get the electrical field source
dataset/ETHPy150Open EntilZha/PyFunctional/functional/pipeline.py/Sequence.to_sqlite3--crossover with--dataset/ETHPy150Open simpeg/simpeg/SimPEG/MT/SrcMT.py/polxy_3Dprimary.S_e