Skip to content

Commit 2ac79e3

Browse files
committed
Added notebook and binder
1 parent 9344b8e commit 2ac79e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebooks/demo_crdb_sql_audit.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
"metadata": {},
1818
"outputs": [],
1919
"execution_count": null,
20-
"source": "# Step 1: Load the rules YAML\nimport yaml\n\nwith open(\"rules/test_rules.yaml\") as f:\n rules = yaml.safe_load(f)\n\nprint(f\"\u2705 Loaded {len(rules)} rules\")"
20+
"source": "# Step 1: Load the rules YAML\nimport yaml\n\nwith open(\"https://raw.githubusercontent.com/viragtripathi/crdb-sql-audit/main/tests/rules/test_rules.yaml\") as f:\n rules = yaml.safe_load(f)\n\nprint(f\"\u2705 Loaded {len(rules)} rules\")"
2121
},
2222
{
2323
"cell_type": "code",
2424
"metadata": {},
2525
"outputs": [],
2626
"execution_count": null,
27-
"source": "# Step 2: Load a test log file (SQL lines)\nwith open(\"tests/sample_logs/basic_pg_chunk.log\") as f:\n raw_lines = [line.strip() for line in f if line.strip()]\n\nprint(f\"\u2705 Loaded {len(raw_lines)} lines\")"
27+
"source": "# Step 2: Load a test log file (SQL lines)\nwith open(\"https://raw.githubusercontent.com/viragtripathi/crdb-sql-audit/main/tests/sample_logs/basic_pg_chunk.log\") as f:\n raw_lines = [line.strip() for line in f if line.strip()]\n\nprint(f\"\u2705 Loaded {len(raw_lines)} lines\")"
2828
},
2929
{
3030
"cell_type": "code",

0 commit comments

Comments
 (0)