Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class ConnectionMetadataBuilder
import { ConnectionMetadataBuilder } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/connection/ConnectionMetadataBuilder.ts";

Builds migration instances, subscriber instances and entity metadatas for the given classes.

Constructors

new
ConnectionMetadataBuilder(connection: Connection)

Methods

buildEntityMetadatas(entities: (Function | EntitySchema<any> | string)[]): Promise<EntityMetadata[]>

Builds entity metadatas for the given classes or directories.

buildMigrations(migrations: (Function | string)[]): Promise<MigrationInterface[]>

Builds migration instances for the given classes or directories.

buildSubscribers(subscribers: (Function | string)[]): Promise<EntitySubscriberInterface<any>[]>

Builds subscriber instances for the given classes or directories.