Skip to content

Commit

Permalink
docs(python): Update write_database code blocks in user guide (#15106)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackRolfe authored Mar 18, 2024
1 parent 9f7ec49 commit 4a91992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/python/user-guide/io/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
uri = "postgresql://username:password@server:port/database"
df = pl.DataFrame({"foo": [1, 2, 3]})
df.write_database(table_name="records", uri=uri)
df.write_database(table_name="records", connection=uri)
# --8<-- [end:write]
# --8<-- [start:write_adbc]
uri = "postgresql://username:password@server:port/database"
df = pl.DataFrame({"foo": [1, 2, 3]})
df.write_database(table_name="records", uri=uri, engine="adbc")
df.write_database(table_name="records", connection=uri, engine="adbc")
# --8<-- [end:write_adbc]
"""

0 comments on commit 4a91992

Please sign in to comment.