Skip to content

Commit 5d54b7d

Browse files
committed
Update postgre references
1 parent f84a7a7 commit 5d54b7d

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

text_2_sql/.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Environment variables for Text2SQL
22
IdentityType=<identityType> # system_assigned or user_assigned or key
33

4-
Text2Sql__DatabaseEngine=<DatabaseEngine> # TSQL or PostgreSQL or Snowflake or Databricks
4+
Text2Sql__DatabaseEngine=<DatabaseEngine> # TSQL or Postgres or Snowflake or Databricks
55
Text2Sql__UseQueryCache=<Determines if the Query Cache will be used to speed up query generation. Defaults to True.> # True or False
66
Text2Sql__PreRunQueryCache=<Determines if the results from the Query Cache will be pre-run to speed up answer generation. Defaults to True.> # True or False
77
Text2Sql__UseColumnValueStore=<Determines if the Column Value Store will be used for schema selection Defaults to True.> # True or False
@@ -26,7 +26,7 @@ AIService__AzureSearchOptions__Text2SqlColumnValueStore__Index=<Column value sto
2626
Text2Sql__Tsql__ConnectionString=<Tsql databaseConnectionString if using Tsql Data Source>
2727
Text2Sql__Tsql__Database=<Tsql database if using Tsql Data Source>
2828

29-
# PostgreSQL Specific Connection Details
29+
# Postgres Specific Connection Details
3030
Text2Sql__Postgres__ConnectionString=<Postgres databaseConnectionString if using Postgres Data Source and a connection string>
3131
Text2Sql__Postgres__Database=<Postgres database if using Postgres Data Source>
3232
Text2Sql__Postgres__User=<Postgres user if using Postgres Data Source and not the connections string>

text_2_sql/data_dictionary/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ The following Databases have pre-built scripts for them:
218218
- **Databricks:** `./text_2_sql_core/data_dictionary/databricks_data_dictionary_creator.py`
219219
- **Snowflake:** `./text_2_sql_core/data_dictionary/snowflake_data_dictionary_creator.py`
220220
- **TSQL:** `./text_2_sql_core/data_dictionary/tsql_data_dictionary_creator.py`
221-
- **PostgreSQL:** `./text_2_sql_core/data_dictionary/postgres_data_dictionary_creator.py`
221+
- **Postgres:** `./text_2_sql_core/data_dictionary/postgres_data_dictionary_creator.py`
222222

223223
If there is no pre-built script for your database engine, take one of the above as a starting point and adjust it.
224224

text_2_sql/text_2_sql_core/src/text_2_sql_core/connectors/postgres_sql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async def query_execution(
5454
cast_to: any = None,
5555
limit=None,
5656
) -> list[dict]:
57-
"""Run the SQL query against the PostgreSQL database asynchronously.
57+
"""Run the SQL query against the Postgres database asynchronously.
5858
5959
Args:
6060
----
@@ -91,7 +91,7 @@ async def query_execution(
9191
"host": os.environ["Text2Sql__Postgres__ServerHostname"],
9292
}
9393

94-
# Establish an asynchronous connection to the PostgreSQL database
94+
# Establish an asynchronous connection to the Postgres database
9595
async with await psycopg.AsyncConnection.connect(
9696
**postgres_connections
9797
) as conn:

text_2_sql/text_2_sql_core/src/text_2_sql_core/data_dictionary/postgres_data_dictionary_creator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, **kwargs):
2424

2525
@property
2626
def extract_table_entities_sql_query(self) -> str:
27-
"""A property to extract table entities from a PostgreSQL database."""
27+
"""A property to extract table entities from a Postgres database."""
2828
return """SELECT
2929
t.table_name AS "Entity",
3030
t.table_schema AS "EntitySchema",
@@ -46,7 +46,7 @@ def extract_table_entities_sql_query(self) -> str:
4646

4747
@property
4848
def extract_view_entities_sql_query(self) -> str:
49-
"""A property to extract view entities from a PostgreSQL database."""
49+
"""A property to extract view entities from a Postgres database."""
5050
return """SELECT
5151
v.table_name AS "Entity",
5252
v.table_schema AS "EntitySchema",
@@ -65,7 +65,7 @@ def extract_view_entities_sql_query(self) -> str:
6565
"EntitySchema", "Entity";"""
6666

6767
def extract_columns_sql_query(self, entity: EntityItem) -> str:
68-
"""A property to extract column information from a PostgreSQL database."""
68+
"""A property to extract column information from a Postgres database."""
6969
return f"""SELECT
7070
c.attname AS "Name",
7171
t.typname AS "DataType",
@@ -89,7 +89,7 @@ def extract_columns_sql_query(self, entity: EntityItem) -> str:
8989

9090
@property
9191
def extract_entity_relationships_sql_query(self) -> str:
92-
"""A property to extract entity relationships from a PostgreSQL database."""
92+
"""A property to extract entity relationships from a Postgres database."""
9393
return """SELECT
9494
fk_schema.nspname AS "EntitySchema",
9595
fk_tab.relname AS "Entity",

0 commit comments

Comments
 (0)