Skip to content

Commit

Permalink
docs: add warning in 'to_sql'
Browse files Browse the repository at this point in the history
  • Loading branch information
gmcrocetti committed Jan 3, 2025
1 parent c00298a commit 77dc01c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pandas/io/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,11 @@ def to_sql(
"""
Write records stored in a DataFrame to a SQL database.
.. warning::
This method can run arbitrary code which can make you vulnerable to code
injection if you pass user input to the `name` argument.
Parameters
----------
frame : DataFrame, Series
Expand Down

0 comments on commit 77dc01c

Please sign in to comment.