Skip to content

Commit da21431

Browse files
committed
fix: expand create table
1 parent a834696 commit da21431

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "query-farm-flight-server"
3-
version = "0.1.8"
3+
version = "0.1.9"
44
description = "A framework for building Arrow Flight servers for the DuckDB Airport extension with robust authentication, schema management, and data handling capabilities."
55
authors = [{ name = "Rusty Conover", email = "hello@query.farm" }]
66
dependencies = [

src/query_farm_flight_server/parameter_types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ class CreateTable(BaseModel):
118118
unique_constraints: list[int]
119119
check_constraints: list[str]
120120

121+
primary_key_columns: list[str]
122+
unique_columns: list[str]
123+
multi_key_primary_keys: list[str]
124+
extra_constraints: list[str]
125+
121126

122127
T = TypeVar("T", bound=BaseModel)
123128

src/query_farm_flight_server/test_action_decoders.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def test_decode_create_table() -> None:
4141
"not_null_constraints": [],
4242
"unique_constraints": [],
4343
"check_constraints": ["test1"],
44+
"primary_key_columns": [],
45+
"unique_columns": [],
46+
"multi_key_primary_keys": [],
47+
"extra_constraints": [],
4448
},
4549
)
4650

0 commit comments

Comments
 (0)