Registry
Aalexbit-codemod avatar

snowflake-postgres-discovery-bundle

Read-only workflow that runs the Snowflake Postgres discovery miners as JSSG steps in one pass: AWS JDBC settings, database address options, datasources, TLS, routing, pool size, native SQL, PostgreSQL test containers, and deployment YAML.

alexbit-codemod0 executions

  • mining
  • metrics
  • snowflake
  • postgres
  • keycloak
  • jdbc
  • jssg
  • workflow
Connect a repo
npx codemod snowflake-postgres-discovery-bundle

snowflake-postgres-discovery-bundle

Read-only workflow that runs the Snowflake Postgres discovery miners as JSSG steps in one package. It writes no files. Metrics answer where a Keycloak-style deployment still carries Aurora JDBC assumptions, how database addresses and secrets are supplied, and which Java call sites need a Snowflake Postgres compatibility test.

StepScriptMetric
AWS JDBC settings in Javascripts/aws-jdbc.tssnowflake-aws-jdbc, snowflake-aws-jdbc-file
AWS JDBC settings in XMLscripts/aws-jdbc-xml.tssnowflake-aws-jdbc, snowflake-aws-jdbc-file
Database address optionsscripts/db-address.tssnowflake-db-address
Additional datasourcesscripts/datasource.tssnowflake-datasource
JDBC TLS settingsscripts/jdbc-tls.tssnowflake-jdbc-tls
targetServerType routingscripts/target-server-type.tssnowflake-target-server-type
Pool maximumsscripts/db-pool.tssnowflake-db-pool
Native SQL call sitesscripts/native-sql.tssnowflake-native-sql
PostgreSQL test containersscripts/postgres-test.tssnowflake-postgres-test
Deployment YAMLscripts/deployment.tssnowflake-postgres-deployment, snowflake-postgres-deployment-file

snowflake-aws-jdbc-file.pairing=wrapper-url-with-aws-driver and snowflake-postgres-deployment-file.pairing=wrapper-url-with-aws-driver are the files that set a wrapper URL and still set the Amazon JDBC driver.

Count snowflake-db-address rows with role=option-definition when the question is how many option definitions exist. Constant references are mapper and call-site uses of those options.

Metrics

snowflake-aws-jdbc and snowflake-aws-jdbc-file

Java and XML steps record AWS JDBC wrapper URLs and software.amazon.jdbc.Driver. XML hits set source=xml and include the property element that holds the value.

MetricCardinalities
snowflake-aws-jdbcsignal (wrapper-url, aws-driver), host, property, source, file, line, snippet
snowflake-aws-jdbc-filepairing, host, source, file, line

pairing is wrapper-url-with-aws-driver, wrapper-url-only, or aws-driver-only. A Java compilation unit is not one connection definition, so a standard jdbc:postgresql: URL elsewhere in the same file does not count as a paired override. Deployment YAML uses document scope for that relation.

snowflake-db-address

Separates full JDBC URL settings from host settings, and option definitions from constant references and prose.

CardinalityMeaning
tokendb-url, db-url-host, db-url-full, DB_URL, DB_URL_HOST, KC_DB_URL, KC_DB_URL_HOST, KC_DB_URL_FULL
addressKindfull-url or host
roleoption-definition, option-key, constant-definition, constant-reference, env-var, prose
file, line, snippetlocation

snowflake-datasource

CardinalityMeaning
symbolgetDatasourceOption, getDatasourceOptionValue, or DATABASE_DATASOURCES
kinddeclaration, invocation, or category
file, line, snippetlocation

snowflake-jdbc-tls

CardinalityMeaning
propertysslmode, sslrootcert, sslkey, sslfactory, sslpassword, db-tls-mode, db-tls-trust-store-file, db-mtls-key-store-file, or tls-mode
modeextracted mode (verify-full, verify-server, disabled, …) or unspecified
file, line, snippetlocation

snowflake-target-server-type

Records the default append when targetServerType is absent, the contains check that guards it, explicit parameters, and the Quarkus property key.

CardinalityMeaning
signalabsence-check, default-append, explicit-parameter, property-key
valueprimary, another parameter value, or absent
file, line, snippetlocation

snowflake-db-pool

Explicit database pool maximums: db-pool-max-size, DB_POOL_MAX_SIZE, KC_DB_POOL_MAX_SIZE, and operator poolMaxSize accessors. Minimum and initial pool settings are left alone.

CardinalityMeaning
keythe option, constant, environment variable, or accessor
file, line, snippetlocation

snowflake-native-sql

createNativeQuery and prepareStatement call sites. assembly=concatenation marks statements built at runtime. createQuery and createNamedQuery are left alone.

CardinalityMeaning
sinkcreateNativeQuery or prepareStatement
assemblyliteral, concatenation, variable, method_call, field, expression, or none
file, line, snippetlocation

snowflake-postgres-test

CardinalityMeaning
symbolPostgreSQLContainer or PostgresTestDatabase
kindconstructor or class
file, line, snippetlocation

snowflake-postgres-deployment and snowflake-postgres-deployment-file

JDBC URLs, the AWS JDBC driver, database secret fields, pool maximums, TLS mode, and truststores. The file-level metric relates the URL and the driver inside one document.

MetricCardinalities
snowflake-postgres-deploymentsignal, scope, host, tlsMode, file, line, snippet
snowflake-postgres-deployment-filepairing, host, tlsMode, dbSecret, file, line

signal is wrapper-url, jdbc-url, aws-driver, username-secret, password-secret, secret-key-ref, pool-max-size, tls-mode, truststore, or certificate-material.

scope is db for usernameSecret, passwordSecret, and secretKeyRef values whose environment name is a database credential (KC_DB_*, POSTGRES*, DATABASE*). A bootstrap admin secretKeyRef is other. tlsMode=absent means the file did not state a TLS mode.

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.