ReadDatabaseContainer extension

Look up cached elements or accessors from a database. This extension is meant to be used by drift-generated code.

on

Methods

accessor<T extends DatabaseAccessor<GeneratedDatabase>>(T create(GeneratedDatabase)) → T

Available on GeneratedDatabase, provided by the ReadDatabaseContainer extension

Find an accessor by its name in the database, or create it with create. The result will be cached.
resultSet<T extends ResultSetImplementation>(String name) → T

Available on GeneratedDatabase, provided by the ReadDatabaseContainer extension

Find a result set by its name in the database. The result is cached.