How to use @fullstack-one/config - 10 common examples

To help you get started, we’ve selected a few @fullstack-one/config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fullstack-build / fullstack-one / packages / schema-builder / dist / db-schema-builder / index.js View on Github external
// run boot sql script every time - independent, no transaction
            const bootSqlStatements = this.getBootSql();
            for (const sql of Object.values(bootSqlStatements)) {
                this.logger.trace("migration.boot.sql.statement", sql);
                yield dbClient.query(sql);
            }
        });
    }
};
DbSchemaBuilder = __decorate([
    di_1.Service(),
    __param(0, di_1.Inject((type) => boot_loader_1.BootLoader)),
    __param(1, di_1.Inject((type) => config_1.Config)),
    __param(2, di_1.Inject((type) => logger_1.LoggerFactory)),
    __param(3, di_1.Inject((type) => db_1.DbAppClient)),
    __metadata("design:paramtypes", [Object, config_1.Config,
        logger_1.LoggerFactory,
        db_1.DbAppClient])
], DbSchemaBuilder);
exports.DbSchemaBuilder = DbSchemaBuilder;
github fullstack-build / fullstack-one / packages / queue / dist / index.js View on Github external
return __awaiter(this, void 0, void 0, function* () {
            let boss;
            const queueConfig = di_1.Container.get(config_1.Config).getConfig("Queue");
            // create new connection if set in config, otherwise use one from the pool
            if (queueConfig != null && queueConfig.host && queueConfig.database && queueConfig.user && queueConfig.password) {
                // create a PGBoss instance
                boss = new PgBoss(queueConfig);
            }
            else {
                if (this.generalPool.pgPool == null) {
                    throw Error("DB.generalPool not ready");
                }
                // get new connection from the pool
                const pgCon = yield this.generalPool.pgPool.connect();
                // Add `close` and `executeSql` functions for PgBoss to function
                const pgBossDB = {
                    close: pgCon.release,
                    executeSql: (...args) => __awaiter(this, void 0, void 0, function* () {
                        return pgCon.query.apply(pgCon, args);
github fullstack-build / fullstack-one / packages / fullstack-one / dist / fullstack-one / lib / index.js View on Github external
    __param(0, di_1.Inject(type => boot_loader_1.BootLoader)), __param(1, di_1.Inject(type => config_1.Config)),
    __metadata("design:paramtypes", [Object, Object])
github fullstack-build / fullstack-one / packages / graphql-parser / dist / index.js View on Github external
    __param(1, di_1.Inject(type => config_1.Config)),
    __param(2, di_1.Inject(type => boot_loader_1.BootLoader)),
github fullstack-build / fullstack-one / packages / auth / dist / auth / lib / index.js View on Github external
    __param(4, di_1.Inject(type => config_1.Config)),
    __param(5, di_1.Inject(type => graphql_1.GraphQl)),
github fullstack-build / fullstack-one / packages / auto-migrate / dist / index.js View on Github external
    __param(2, di_1.Inject((type) => config_1.Config)),
    __param(3, di_1.Inject((type) => schema_builder_1.SchemaBuilder)),
github fullstack-build / fullstack-one / packages / db / dist / DbGeneralPool.js View on Github external
    __param(3, di_1.Inject((type) => config_1.Config)),
    __metadata("design:paramtypes", [Object, Object, Object, Object])
github fullstack-build / fullstack-one / packages / auth / dist / index.js View on Github external
    __param(4, di_1.Inject((type) => config_1.Config)),
    __param(5, di_1.Inject((type) => graphql_1.GraphQl)),
github fullstack-build / fullstack-one / packages / schema-builder / dist / index.js View on Github external
    __param(0, di_1.Inject((type) => config_1.Config)),
    __param(1, di_1.Inject((type) => logger_1.LoggerFactory)),
github fullstack-build / fullstack-one / packages / fullstack-one / dist / index.js View on Github external
    __param(0, di_1.Inject((type) => boot_loader_1.BootLoader)), __param(1, di_1.Inject((type) => config_1.Config)),
    __metadata("design:paramtypes", [Object, Object])

@fullstack-one/config

fullstack.one config package

MIT
Latest version published 3 years ago

Package Health Score

49 / 100
Full package analysis

Popular @fullstack-one/config functions

Similar packages