MCPcopy
hub / github.com/eveningkid/denodb / link

Method link

lib/database.ts:218–229  ·  view source on GitHub ↗

Associate all the required information for a model to connect to a database. * * await db.link([Flight, Airport]);

(models: ModelSchema[])

Source from the content-addressed store, hash-verified

216 * await db.link([Flight, Airport]);
217 */
218 link(models: ModelSchema[]) {
219 this._models = models;
220
221 this._models.forEach((model) =>
222 model._link({
223 queryBuilder: this._queryBuilder,
224 database: this,
225 })
226 );
227
228 return this;
229 }
230
231 /** Pass on any query to the database.
232 *

Callers 6

update.test.tsFile · 0.80
update.test.tsFile · 0.80
insert.test.tsFile · 0.80
response.test.tsFile · 0.80
models.test.tsFile · 0.80
foreignkey.test.tsFile · 0.80

Calls 1

_linkMethod · 0.80

Tested by

no test coverage detected