Home / Function/ printConfigConnectionIssues() — drizzle-orm Function Reference

printConfigConnectionIssues() — drizzle-orm Function Reference

Architecture documentation for the printConfigConnectionIssues() function in gel.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  c033041b_2e1e_39d2_c16d_62c5f5e8899e["printConfigConnectionIssues()"]
  3b06bb5a_5f4f_2e22_4153_4879511c568b["gel.ts"]
  c033041b_2e1e_39d2_c16d_62c5f5e8899e -->|defined in| 3b06bb5a_5f4f_2e22_4153_4879511c568b
  b0ef3d06_896b_eefc_c410_dfb419673d70["error()"]
  c033041b_2e1e_39d2_c16d_62c5f5e8899e -->|calls| b0ef3d06_896b_eefc_c410_dfb419673d70
  b00190f0_9c7c_acbf_86f7_950ac8c79592["wrapParam()"]
  c033041b_2e1e_39d2_c16d_62c5f5e8899e -->|calls| b00190f0_9c7c_acbf_86f7_950ac8c79592
  style c033041b_2e1e_39d2_c16d_62c5f5e8899e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/cli/validations/gel.ts lines 52–80

export const printConfigConnectionIssues = (
	options: Record<string, unknown>,
) => {
	if ('url' in options) {
		let text = `Please provide required params for Gel driver:\n`;
		console.log(error(text));
		console.log(wrapParam('url', options.url, false, 'url'));
		process.exit(1);
	}

	if ('host' in options || 'database' in options) {
		let text = `Please provide required params for Gel driver:\n`;
		console.log(error(text));
		console.log(wrapParam('host', options.host));
		console.log(wrapParam('port', options.port, true));
		console.log(wrapParam('user', options.user, true));
		console.log(wrapParam('password', options.password, true, 'secret'));
		console.log(wrapParam('database', options.database));
		console.log(wrapParam('tlsSecurity', options.tlsSecurity, true));
		process.exit(1);
	}

	console.log(
		error(
			`Either connection "url" or "host", "database" are required for Gel database connection`,
		),
	);
	process.exit(1);
};

Domain

Subdomains

Frequently Asked Questions

What does printConfigConnectionIssues() do?
printConfigConnectionIssues() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/cli/validations/gel.ts.
Where is printConfigConnectionIssues() defined?
printConfigConnectionIssues() is defined in drizzle-kit/src/cli/validations/gel.ts at line 52.
What does printConfigConnectionIssues() call?
printConfigConnectionIssues() calls 2 function(s): error, wrapParam.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free