@sequelize/core
Version:
Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, Microsoft SQL Server, Amazon Redshift, Snowflake’s Data Cloud, Db2, and IBM i. It features solid transaction support, relations, eager and lazy loading, read replication a
9 lines (8 loc) • 346 B
TypeScript
import { BelongsToAssociation } from '../associations/index.js';
import type { ModelStatic } from '../model.js';
/**
* Returns all BelongsTo associations in the entire Sequelize instance that target the given model.
*
* @param target
*/
export declare function getBelongsToAssociationsWithTarget(target: ModelStatic): BelongsToAssociation[];