datajunction-query 0.0.1a58__py3-none-any.whl → 0.0.28__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
djqs/models/engine.py DELETED
@@ -1,50 +0,0 @@
1
- """
2
- Models for columns.
3
- """
4
- from enum import Enum
5
- from typing import Dict, Optional
6
-
7
- from sqlalchemy.sql.schema import Column as SqlaColumn
8
- from sqlmodel import JSON, Field, SQLModel
9
-
10
-
11
- class EngineType(Enum):
12
- """
13
- Supported engine types
14
- """
15
-
16
- DUCKDB = "duckdb"
17
- SQLALCHEMY = "sqlalchemy"
18
- SNOWFLAKE = "snowflake"
19
-
20
-
21
- class Engine(SQLModel, table=True): # type: ignore
22
- """
23
- A query engine.
24
- """
25
-
26
- id: Optional[int] = Field(default=None, primary_key=True)
27
- name: str
28
- type: EngineType
29
- version: str
30
- uri: Optional[str]
31
- extra_params: Dict = Field(default={}, sa_column=SqlaColumn(JSON))
32
-
33
-
34
- class BaseEngineInfo(SQLModel):
35
- """
36
- Class for engine creation
37
- """
38
-
39
- name: str
40
- version: str
41
- type: EngineType
42
- extra_params: Dict = {}
43
-
44
-
45
- class EngineInfo(BaseEngineInfo):
46
- """
47
- Class for engine creation
48
- """
49
-
50
- uri: str