Go golang

Go Database Connection Sample

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

#Go
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.

Highlights

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