Skip to content

Commit

Permalink
docs: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jarulraj committed Sep 27, 2023
1 parent e06a859 commit b12e7ac
Showing 1 changed file with 11 additions and 31 deletions.
42 changes: 11 additions & 31 deletions docs/source/shared/postgresql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,14 @@ We will assume that you have a ``PostgreSQL`` database server running locally th

EvaDB lets you connect to your favorite databases, data warehouses, data lakes, etc., via the ``CREATE DATABASE`` statement. In this query, we connect EvaDB to an existing ``PostgreSQL`` server:

.. tab-set::

.. tab-item:: Python

.. code-block:: python
params = {
"user": "eva",
"password": "password",
"host": "localhost",
"port": "5432",
"database": "evadb",
}
query = f"CREATE DATABASE postgres_data
WITH ENGINE = 'postgres',
PARAMETERS = {params};"
cursor.query(query).df()
.. tab-item:: SQL

.. code-block:: text
CREATE DATABASE postgres_data
WITH ENGINE = 'postgres',
PARAMETERS = {
"user": "eva",
"password": "password",
"host": "localhost",
"port": "5432",
"database": "evadb"
}
.. code-block:: text
CREATE DATABASE postgres_data
WITH ENGINE = 'postgres',
PARAMETERS = {
"user": "eva",
"password": "password",
"host": "localhost",
"port": "5432",
"database": "evadb"
}

0 comments on commit b12e7ac

Please sign in to comment.