---------------------------------------------------------------------- This is the API documentation for the gdtest_ref_title library. ---------------------------------------------------------------------- ## Functions Public functions query(sql: str) -> list Execute a SQL query and return the results. Parameters ---------- sql : str The SQL query string to execute. Returns ------- list A list of result rows. Examples -------- >>> query("SELECT * FROM users") [{'id': 1, 'name': 'Alice'}] insert(table: str, data: dict) -> int Insert a row into a table and return the new row ID. Parameters ---------- table : str The name of the table to insert into. data : dict A dictionary of column-value pairs. Returns ------- int The ID of the newly inserted row. Examples -------- >>> insert("users", {"name": "Bob"}) 2 delete(table: str, id: int) -> bool Delete a row from a table by its ID. Parameters ---------- table : str The name of the table to delete from. id : int The ID of the row to delete. Returns ------- bool True if the row was deleted successfully. Examples -------- >>> delete("users", 1) True