RandomDBGenerator/pythonProject/sqlgenerator/ColumnValue.py

15 lines
313 B
Python
Raw Normal View History

from enum import Enum
2024-04-17 16:22:16 +02:00
from sqlparse.SQLColumn import SQLColumn
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):
self.value = value
2024-04-17 16:22:16 +02:00
self.valueType = value_type
self.sqlColumn = sql_column