import { Settings } from 'graphile-migrate'; import { DbLogger } from '../common'; /** * Executes all .sql files located in a specified directory. * * @param settings - graphile-migrate settings object * @param dirPath - relative path from the root of a project to a folder with sql scripts in it, e.g. 'migrations/after-reset' */ export declare const runSqlScripts: (settings: Settings, dirPath: string, logger: DbLogger) => Promise; /** * Executes a `migrations/current.sql` located in the root of the project using graphile-migrate `run` command * * @param settings - graphile-migrate settings object */ export declare const runCurrentSql: (settings: Settings, logger: DbLogger) => Promise; /** * Retrieves an array of relative string paths to before-migration sql scripts, which is consumed by graphile-migrate settings. * Scripts contain helper functions which are added to ax_utils schema. * Approximate return value: * ``` * [ '..\\..\\..\\..\\libs\\service-common\\migrations\\before-migration\\001-setup.sql', '..\\..\\..\\..\\libs\\service-common\\migrations\\before-migration\\002-error-functions.sql', '..\\..\\..\\..\\libs\\service-common\\migrations\\before-migration\\003-validation-functions.sql', '..\\..\\..\\..\\libs\\service-common\\migrations\\before-migration\\004-subscriptions.sql', '..\\..\\..\\..\\libs\\service-common\\migrations\\before-migration\\005-created-updated-triggers.sql', '..\\..\\..\\..\\libs\\service-common\\migrations\\before-migration\\006-authorization.sql', ] ``` */ export declare const getBeforeMigrationScripts: (migrationsFolder?: string) => Promise; /** * Retrieve a relative path to watch-fixtures.sql of `graphile-build-pg` package. The path is relative to the 'migrations' folder of a specific project. * Should only be used in development mode. Useful when there is a need to explicitly install postgraphile watch fixtures, so that database owner user can be created without a superuser privilege. * Approximate return value: `../../../../node_modules/graphile-build-pg/res/watch-fixtures.sql` */ export declare const getGraphileBuildPgWatchFixturesPath: () => string; //# sourceMappingURL=utils.d.ts.map