MCPcopy Create free account
hub / github.com/denodrivers/postgres / getMainConfiguration

Function getMainConfiguration

tests/config.ts:76–91  ·  view source on GitHub ↗
(
  _config?: ClientOptions,
)

Source from the content-addressed store, hash-verified

74
75/** MD5 authenticated user with privileged access to the database */
76export const getMainConfiguration = (
77 _config?: ClientOptions,
78): TcpConfiguration => {
79 return {
80 applicationName: config.postgres_md5.applicationName,
81 database: config.postgres_md5.database,
82 hostname: config.postgres_md5.hostname,
83 password: config.postgres_md5.password,
84 user: config.postgres_md5.users.main,
85 ..._config,
86 options: {},
87 port: config.postgres_md5.port,
88 tls: enabled_tls,
89 host_type: "tcp",
90 };
91};
92
93export const getMd5Configuration = (tls: boolean): TcpConfiguration => {
94 return {

Callers 5

data_types_test.tsFile · 0.90
connection_test.tsFile · 0.90
pool_test.tsFile · 0.90
clientWrapperFunction · 0.90
poolWrapperFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected