Skip to content

Commit eab990b

Browse files
Merge pull request #2 from oracle-quickstart/connection-string-updated-v2
Connection string updated
2 parents 23c138a + dbd06d1 commit eab990b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas-data.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
password = os.environ['ORACLE_PASSWORD']
1616
dsn = os.environ['ORACLE_DSN']
1717

18-
engine_cloud = create_engine(f'oracle://{user}:{password}@{dsn}')
18+
engine_cloud = create_engine(f'oracle://:@',
19+
connect_args={
20+
"user": user,
21+
"password": password,
22+
"dsn": dsn
23+
}
24+
)
1925

2026
try:
2127
# Read employees table

0 commit comments

Comments
 (0)