Skip to content

Commit

Permalink
NiFi Scripts: sqlite query builder updates II.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed May 13, 2024
1 parent 1d2c6f0 commit db927c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nifi/user-scripts/utils/sqlite_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def connect_and_query(query: str, db_file_path: str, sqlite_connection: sqlite3.

def create_connection(db_file_path: str, read_only_mode=False) -> sqlite3.Connection:

connection_str = "file:/" + str(db_file_path)
connection_str = "file:" + str(db_file_path)

if read_only_mode:
connection_str += "?mode=ro"
Expand Down

0 comments on commit db927c0

Please sign in to comment.