discontinuedPackage connect_database has been discontinued.
SchemaUtils class
Methods
-
columnExists(String tableName, String columnName)
→ Future<Result<bool>>
-
Checks if a column exists in a table.
-
createTable(String tableName, String ddlBody)
→ Future<Result<Unit>>
-
Creates a new table if it doesn't exist (manual verification can be done by the caller beforehand).
ddlBody should contain the definition body, e.g., "(Id INT, Nome VARCHAR(100))"
-
ensureColumn(String tableName, String columnName, String ddlType)
→ Future<Result<Unit>>
-
Ensures that a column exists in the table. If it doesn't exist, executes ALTER TABLE ADD.
ddlType e.g., "INT", "VARCHAR(100) NULL".
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
procedureExists(String procName)
→ Future<Result<bool>>
-
Checks if a procedure or function exists.
-
tableExists(String tableName)
→ Future<Result<bool>>
-
Checks if a table exists in the database.
-
toString()
→ String
-
A string representation of this object.
inherited
-
viewExists(String viewName)
→ Future<Result<bool>>
-
Checks if a view exists.