getMysqlPooledConnectionString (lib/mysql-connect-snippets.ts)

appwrite · apps/console/src/lib/mysql-connect-snippets.ts · typescript · BSD-3-Clause
database

Generates MySQL connection snippets for env, Prisma, Drizzle, and CLI, with password masking.

// Source: https://github.com/appwrite/appwrite | License: BSD-3-Clause | Copyright 2019 Appwrite (https://appwrite.io) and individual contributors
// Provided via justclaw.it.com; keep this notice with the code.
import type { DedicatedDatabaseCredentials } from '@/lib/databases/dedicated-engine'
import type { Models } from '@appwrite.io/console' // pragma: allowlist secret
import type { CodeBlockLanguage } from '@/components/global/shared/CodeBlock'
import { maskMysqlConnectionStringPassword } from '@/lib/mysql-connection-string'

export type MysqlConnectSnippetTab = 'env' | 'prisma' | 'drizzle' | 'mysql'

export type MysqlConnectTab = 'details' | 'dsn' | MysqlConnectSnippetTab

export type MysqlConnectionEndpointInfo = {
  sslLabel: string
  poolerEnabled: boolean
  poolerMode?: string
 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key