MCPcopy
hub / github.com/sequelize/sequelize / getConnectionUri

Function getConnectionUri

test/integration/sequelize.test.js:62–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61 if (dialect === 'postgres') {
62 const getConnectionUri = o => `${o.protocol}://${o.username}:${o.password}@${o.host}${o.port ? `:${o.port}` : ''}/${o.database}${o.options ? `?options=${o.options}` : ''}`;
63 it('should work with connection strings (postgres protocol)', () => {
64 const connectionUri = getConnectionUri({ ...config[dialect], protocol: 'postgres' });
65 // postgres://...

Callers 1

sequelize.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected