2024-04-17 10:40:55 +02:00
|
|
|
from enum import Enum
|
|
|
|
|
2024-04-17 16:22:16 +02:00
|
|
|
from sqlparse.SQLColumn import SQLColumn
|
|
|
|
|
2024-04-17 10:40:55 +02:00
|
|
|
|
|
|
|
class ValueType(Enum):
|
|
|
|
INT = 0,
|
|
|
|
STRING = 1
|
|
|
|
|
|
|
|
|
|
|
|
class ColumnValue:
|
2024-04-17 16:22:16 +02:00
|
|
|
def __init__(self, value, value_type: ValueType, sql_column: SQLColumn):
|
2024-04-17 10:40:55 +02:00
|
|
|
self.value = value
|
2024-04-17 16:22:16 +02:00
|
|
|
self.valueType = value_type
|
|
|
|
self.sqlColumn = sql_column
|