Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jarulraj committed Oct 24, 2023
1 parent ce64231 commit d340548
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 17 deletions.
15 changes: 11 additions & 4 deletions docs/source/overview/connect-to-data-sources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ EvaDB supports a wide range of data sources including SQL database systems, obje
Connect to an Existing SQL Database System
------------------------------------------

1. Use the :ref:`CREATE DATABASE<create-database>` statement to connect to an **existing** SQL database.
1. Use the :ref:`CREATE DATABASE<create-database>` statement to connect to an **existing** SQL database server. For example, here is the SQL command to connect EvaDB with a locally running :ref:`PostgreSQL<postgresql>` database server running on port ``5432``.

.. code-block::
Expand All @@ -20,13 +20,20 @@ Connect to an Existing SQL Database System
"database": "restaurant_reviews"
};
.. note::
For quick prototyping, you can use an embedded :ref:`SQLite<sqlite>` database. Here, the SQLite database file is called ``evadb.db``.

Go over the :ref:`CREATE DATABASE<create-database>` statement for more details. The :ref:`Databases<databases>` page lists all the database systems that EvaDB currently supports.
.. code-block::
CREATE DATABASE restaurant_reviews
WITH ENGINE = 'sqlite',
PARAMETERS = {
"database": "evadb.db"
};
.. note::

For prototyping, users can opt to establish a connection to :ref:`SQLite<sqlite>`.
Go over the :ref:`CREATE DATABASE<create-database>` statement for more details. The :ref:`Databases<databases>` page lists all the database systems that EvaDB currently supports.


2. Preview the data using ``SELECT``

Expand Down
2 changes: 2 additions & 0 deletions docs/source/reference/databases/postgres.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _postgresql:

PostgreSQL
==========

Expand Down
7 changes: 6 additions & 1 deletion docs/source/shared/postgresql.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
Connect EvaDB to PostgreSQL Database Server
-------------------------------------------

We will assume that you have a ``PostgreSQL`` database server running locally that contains the data needed for analysis. Follow these instructions to install `PostgreSQL <https://www.postgresql.org/download/>`_.
We will assume that you have a :ref:`PostgreSQL<postgresql>` database running locally that contains the data needed for analysis. Follow these instructions to install `PostgreSQL <https://www.postgresql.org/download/>`_.

.. note::
If find it challenging to install the ``PostgreSQL`` database on your machine, here is an alternative for quick prototyping.

You can use an embedded :ref:`SQLite<sqlite>` database. If you go with the ``sqlite`` database, alter the SQL commands in this tutorial to use the ``sqlite`` engine and the ``evadb.db`` SQLite database file as explained in the :ref:`SQLite<sqlite>` page.

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:

Expand Down
4 changes: 0 additions & 4 deletions docs/source/usecases/classification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ In this tutorial, we present how to to create and train a machine learning model
We will assume that the input data is loaded into a ``PostgreSQL`` database.
To load the home rental data into your database, see the complete `home rental prediction notebook on Colab <https://colab.research.google.com/github/georgia-tech-db/eva/blob/staging/tutorials/17-home-rental-prediction.ipynb>`_.

.. note::

For prototyping, users can opt to establish a connection to :ref:`SQLite<sqlite>`.

Preview the Home Rental Price Data
----------------------------------

Expand Down
4 changes: 0 additions & 4 deletions docs/source/usecases/forecasting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ In this tutorial, we present how to create and train a machine learning model fo
We will assume that the input data is loaded into a ``PostgreSQL`` database.
To load the home sales dataset into your database, see the complete `home sale forecasting notebook on Colab <https://colab.research.google.com/github/georgia-tech-db/eva/blob/staging/tutorials/16-homesale-forecasting.ipynb>`_.

.. note::

For prototyping, users can opt to establish a connection to :ref:`SQLite<sqlite>`.

Preview the Home Sale Price Data
--------------------------------

Expand Down
4 changes: 0 additions & 4 deletions docs/source/usecases/sentiment-analysis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ To load the food review data into your database, see the complete `sentiment ana

.. include:: ../shared/postgresql.rst

.. note::

For prototyping, users can opt to establish a connection to :ref:`SQLite<sqlite>`.

Sentiment Analysis of Reviews using ChatGPT
-------------------------------------------

Expand Down

0 comments on commit d340548

Please sign in to comment.