Skip to content

Commit

Permalink
docs(python): Update URI prefix in examples (prefer "postgresql" to "…
Browse files Browse the repository at this point in the history
…postgres") (pola-rs#12707)
  • Loading branch information
alexander-beedie authored Nov 27, 2023
1 parent 9c53549 commit 99c7550
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/python/user-guide/io/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# --8<-- [start:read_uri]
import polars as pl
uri = "postgres://username:password@server:port/database"
uri = "postgresql://username:password@server:port/database"
query = "SELECT * FROM foo"
pl.read_database_uri(query=query, uri=uri)
Expand All @@ -21,21 +21,21 @@
# --8<-- [start:adbc]
uri = "postgres://username:password@server:port/database"
uri = "postgresql://username:password@server:port/database"
query = "SELECT * FROM foo"
pl.read_database_uri(query=query, uri=uri, engine="adbc")
# --8<-- [end:adbc]
# --8<-- [start:write]
uri = "postgres://username:password@server:port/database"
uri = "postgresql://username:password@server:port/database"
df = pl.DataFrame({"foo": [1, 2, 3]})
df.write_database(table_name="records", uri=uri)
# --8<-- [end:write]
# --8<-- [start:write_adbc]
uri = "postgres://username:password@server:port/database"
uri = "postgresql://username:password@server:port/database"
df = pl.DataFrame({"foo": [1, 2, 3]})
df.write_database(table_name="records", uri=uri, engine="adbc")
Expand Down

0 comments on commit 99c7550

Please sign in to comment.