Skip to content

Commit

Permalink
Databases Docs: Small Typo (move-coop#443)
Browse files Browse the repository at this point in the history
* Update databases.rst
  • Loading branch information
jburchard authored Mar 25, 2021
1 parent a7e139b commit 2904f7f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/databases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,24 +75,24 @@ Quick Start
from parsons import Postgres
# Instantiate Postgres from environmental variables
mysql = Postgres()
pg = Postgres()
# Instantiate Postgres from passed variables
Postgres = Postgres(username='me', password='secret', host='mydb.com', db='dev', port=3306)
pg = Postgres(username='me', password='secret', host='mydb.com', db='dev', port=3306)
# Instantiate Postgres from a ~/.pgpass file
Postgres = Postgres()
pg = Postgres()
**Quick Start**

.. code-block:: python
# Query database
tbl = postgres.query('select * from my_schema.secret_sauce')
tbl = pg.query('select * from my_schema.secret_sauce')
# Copy data to database
tbl = Table.from_csv('my_file.csv') # Load from a CSV or other source.
postgres.copy(tbl, 'my_schema.winning_formula')
pg.copy(tbl, 'my_schema.winning_formula')
.. autoclass:: parsons.Postgres
:inherited-members:
Expand Down

0 comments on commit 2904f7f

Please sign in to comment.