diff --git a/docs/source/overview/connect-to-data-sources.rst b/docs/source/overview/connect-to-data-sources.rst index 4651a11e2b..6f32281c25 100644 --- a/docs/source/overview/connect-to-data-sources.rst +++ b/docs/source/overview/connect-to-data-sources.rst @@ -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` statement to connect to an **existing** SQL database. +1. Use the :ref:`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` database server running on port ``5432``. .. code-block:: @@ -20,10 +20,21 @@ Connect to an Existing SQL Database System "database": "restaurant_reviews" }; +For quick prototyping, you can use an embedded :ref:`SQLite` database. Here, the SQLite database file is called ``evadb.db``. + +.. code-block:: + + CREATE DATABASE restaurant_reviews + WITH ENGINE = 'sqlite', + PARAMETERS = { + "database": "evadb.db" + }; + .. note:: Go over the :ref:`CREATE DATABASE` statement for more details. The :ref:`Databases` page lists all the database systems that EvaDB currently supports. + 2. Preview the data using ``SELECT`` You can now preview the data stored in the ``food_review`` table in the ``restaurant_reviews`` database with a :ref:`SELECT