SchemaInspector class

High-level helper that mirrors Laravel's schema inspector.

final inspector = SchemaInspector(driver);
final hasUsers = await inspector.hasTable('users');

Constructors

SchemaInspector(SchemaDriver driver)

Properties

driver SchemaDriver
Schema driver instance that the inspector queries.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

columnType(String table, String column, {String? schema}) Future<String?>
hasColumn(String table, String column, {String? schema}) Future<bool>
hasTable(String table, {String? schema}) Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
tableListing({String? schema, bool schemaQualified = true}) Future<List<String>>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited