Disponible

amalgame-oracle

Oracle Database via Instant Client (OCI), session pooling.

amc package add oracle GitHub ↗ ← Retour à l'écosystème

Vue d'ensemble

Binding dynamic-link au client Oracle Instant Client (OCI). Le wire protocol Oracle étant propriétaire, le package se lie à la lib officielle d'Oracle (libclntsh) — téléchargement séparé, conditions de licence Oracle. Cible Oracle Database ≥ 12c et Autonomous Database.

Caractéristiques

  • Binding à libclntsh (Oracle Instant Client ≥ 19c)
  • Session pooling natif OCI pour les apps haut-trafic
  • Prepared statements, RETURNING, blocs PL/SQL
  • TLS via la chaîne Oracle (wallets supportés)
  • Pattern dynamic-link — pas de fork vendored à maintenir

Exemple

Exemple minimal d'utilisation — recopiable tel quel après l'install.

amc package add oracle

let db = Oracle.Connect("user/pwd@//host:1521/SERVICE")
let rows = db.Query("SELECT id, total FROM orders WHERE customer_id = :1", [42])
for row in rows {
    Console.WriteLine(row.GetInt("id"))
}

En bref

Packages liés