schema_1_model

class mcp_ohmy_sql.db.relational.schema_1_model.ForeignKeyInfo(*, object_type: ObjectTypeEnum = ObjectTypeEnum.FOREIGN_KEY, name: str, comment: str | None = None, onupdate: str | None = None, ondelete: str | None = None, deferrable: bool | None = None, initially: str | None = None)[source]

Ref: https://docs.sqlalchemy.org/en/20/core/constraints.html#sqlalchemy.schema.ForeignKey

model_config: ClassVar[ConfigDict] = {}

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

class mcp_ohmy_sql.db.relational.schema_1_model.ColumnInfo(*, object_type: ~mcp_ohmy_sql.constants.ObjectTypeEnum = ObjectTypeEnum.COLUMN, name: str, comment: str | None = None, fullname: str, type: str, llm_type: ~mcp_ohmy_sql.constants.LLMTypeEnum | None = None, primary_key: bool = False, nullable: bool = False, index: bool | None = None, unique: bool | None = None, system: bool = False, doc: str | None = None, autoincrement: str = '', constraints: list[str] = <factory>, foreign_keys: list[~mcp_ohmy_sql.db.relational.schema_1_model.ForeignKeyInfo] = <factory>, computed: bool = False, identity: bool = False)[source]

Ref: https://docs.sqlalchemy.org/en/20/core/metadata.html#sqlalchemy.schema.Column

model_config: ClassVar[ConfigDict] = {}

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

class mcp_ohmy_sql.db.relational.schema_1_model.TableInfo(*, object_type: ~mcp_ohmy_sql.constants.ObjectTypeEnum, name: str, comment: str | None = None, columns: list[~mcp_ohmy_sql.db.relational.schema_1_model.ColumnInfo] = <factory>, fullname: str, primary_key: list[str] = <factory>, foreign_keys: list[~mcp_ohmy_sql.db.relational.schema_1_model.ForeignKeyInfo] = <factory>)[source]

Ref: https://docs.sqlalchemy.org/en/20/core/metadata.html#sqlalchemy.schema.Table

model_config: ClassVar[ConfigDict] = {}

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

class mcp_ohmy_sql.db.relational.schema_1_model.SchemaInfo(*, object_type: ~mcp_ohmy_sql.constants.ObjectTypeEnum = ObjectTypeEnum.SCHEMA, name: str, comment: str | None = None, tables: list[~mcp_ohmy_sql.db.relational.schema_1_model.TableInfo] = <factory>)[source]
model_config: ClassVar[ConfigDict] = {}

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

class mcp_ohmy_sql.db.relational.schema_1_model.DatabaseInfo(*, object_type: ~mcp_ohmy_sql.constants.ObjectTypeEnum = ObjectTypeEnum.DATABASE, name: str, comment: str | None = None, db_type: ~mcp_ohmy_sql.constants.DbTypeEnum, schemas: list[~mcp_ohmy_sql.db.relational.schema_1_model.SchemaInfo] = <factory>)[source]
model_config: ClassVar[ConfigDict] = {}

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