FFDbSchemaReader class
Reads tables, columns, and row counts from a sqflite Database.
All methods are read-only and safe to call on a production DB.
Constructors
- FFDbSchemaReader(Database db)
-
Creates a reader bound to
db.const
Properties
- db → Database
-
The database to inspect.
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
-
getAllTables(
) → Future< List< String> > - All user tables (excludes sqlite_* internals).
-
getColumns(
String table) → Future< List< FFDbColumn> > -
All columns for
table. -
getRowCount(
String table) → Future< int> -
Row count of
table. Returns -1 if the count query fails. -
getSampleRows(
String table, {int limit = 10}) → Future< List< Map< >String, Object?> > -
Returns up to
limitrows fromtable(defaults to 10). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited