query

mcp_ohmy_sql.aws.aws_redshift.query.format_result(columns: list[str], records: list[tuple]) str[source]

Format SQL query result into a Markdown table.

mcp_ohmy_sql.aws.aws_redshift.query.ensure_valid_select_query(query: str)[source]

Ensure the query is a valid SELECT statement.

mcp_ohmy_sql.aws.aws_redshift.query.execute_select_query(conn: redshift_connector.Connection, query: str, params: dict[str, Any] | None = None) str[source]

Executes a SQL SELECT query and returns the result formatted as a Markdown table.