Gogolang

Go Database Connection Sample

Shared Go connection helper for local Oracle AI Database access with godror.

What this sample helps you learn

This folder contains the shared Go connection helper used by the samples in [`../README.md`](../README.md). The implementation wraps `godror` connection setup, pooling, and optional `TNS_ADMIN` handling for Oracle AI Database.

What this sample demonstrates

Oracle AI Database

Core Oracle AI Database application samples for local development and integration testing.

Use when the first concern is connecting, persisting, or proving database-backed behavior before adding a specialized feature.

Highlights

  • DefaultLocalhostConnection() for localhost:1521/freepdb1
  • NewDatabase(username, password, url) for custom connection details