constants

Constant variables used in this project.

class mcp_ohmy_sql.constants.LLMColumnConstraintEnum(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Simplified database column constraints optimized for LLM token efficiency. Used in schema encoding to reduce token usage while preserving essential constraint information.

class mcp_ohmy_sql.constants.LLMTypeEnum(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Simplified database column data types optimized for LLM token efficiency. Used in schema encoding to represent SQL data types with minimal tokens while preserving semantic meaning.

class mcp_ohmy_sql.constants.ObjectTypeEnum(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Database object types for categorizing different database entities. Used in schema introspection and metadata processing to identify object types.

class mcp_ohmy_sql.constants.DbTypeEnum(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Supported database system types for connection configuration. Used in configuration validation and connection factory selection.

class mcp_ohmy_sql.constants.TableTypeEnum(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Database table types for distinguishing between tables, views, and materialized views. Used in schema introspection and metadata categorization for proper object identification.

class mcp_ohmy_sql.constants.ConnectionTypeEnum(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Connection types for database connections. Used in database BaseConnection management to differentiate between different connection methods.

class mcp_ohmy_sql.constants.EnvVar(*, name: str, default: str = '')[source]

Environment variable wrapper with default value support. Used for accessing environment variables throughout the application with fallback defaults.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class mcp_ohmy_sql.constants.EnvVarEnum[source]

Collection of predefined environment variables used throughout the application. Used for centralized environment variable management and configuration loading.