24 lines
768 B
TypeScript
24 lines
768 B
TypeScript
import { type EntityName } from '@mikro-orm/core';
|
|
import { SqlEntityManager } from '@mikro-orm/sql';
|
|
import type { PostgreSqlDriver } from './PostgreSqlDriver.js';
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
export declare class PostgreSqlEntityManager<
|
|
Driver extends PostgreSqlDriver = PostgreSqlDriver,
|
|
> extends SqlEntityManager<Driver> {
|
|
/**
|
|
* Refreshes a materialized view.
|
|
*
|
|
* @param entityName - The entity name or class of the materialized view
|
|
* @param options - Optional settings
|
|
* @param options.concurrently - If true, refreshes the view concurrently (requires a unique index on the view)
|
|
*/
|
|
refreshMaterializedView<Entity extends object>(
|
|
entityName: EntityName<Entity>,
|
|
options?: {
|
|
concurrently?: boolean;
|
|
},
|
|
): Promise<void>;
|
|
}
|