Skip to content

Commit 0100955

Browse files
authored
Merge pull request #35 from JigsawStack/feat/text-2-sql
add database param to text2sql
2 parents 786da72 + d18459e commit 0100955

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

jigsawstack/sql.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Dict, List, Union, cast
1+
from typing import Any, Dict, List, Union, cast, Literal
22
from typing_extensions import NotRequired, TypedDict
33
from .request import Request, RequestConfig
44
from .async_request import AsyncRequest
@@ -22,6 +22,10 @@ class SQLParams(TypedDict):
2222
"""
2323
The key used to store the database schema on Jigsawstack file Storage. Not required if sql_schema is specified.
2424
"""
25+
database: NotRequired[Literal["mysql", "postgresql", "sqlite"]]
26+
"""
27+
The type of database for the SQL query (mysql, postgresql, sqlite).
28+
"""
2529

2630

2731
class SQLResponse(TypedDict):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setup(
88
name="jigsawstack",
9-
version="0.1.28",
9+
version="0.1.29",
1010
description="JigsawStack Python SDK",
1111
long_description=open("README.md", encoding="utf8").read(),
1212
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)