You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.debug(f"Could not retrieve database credentials from vault : {e}")
100
+
101
+
con=oracledb.connect(**connect_args)
102
+
iftable_nameisnotNone:
103
+
data=pd.read_sql(f"SELECT * FROM {table_name}", con)
104
+
elifsqlisnotNone:
105
+
data=pd.read_sql(sql, con)
106
+
else:
107
+
raiseInvalidParameterError(
108
+
f"Database `connect_args` provided without sql query or table name. Please specify either `sql` or `table_name`."
109
+
)
88
110
else:
89
111
raiseInvalidParameterError(
90
112
f"No filename/url provided, and no connect_args provided. Please specify one of these if you want to read data from a file or a database respectively."
0 commit comments