Skip to content

A Swift experiment to connect to Oracle database via ODPI interface

Notifications You must be signed in to change notification settings

segabor/CodpiExperiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An experiment to fetch some data from Oracle DB using ODPI-C thin API

Requirements

  • Oracle Instant Client
  • odpi (install with brew install odpi)
  • Swift 4.2 or newer

Build

swift build -Xlinker -L/usr/local/lib

Run the example

Example expects connection parameters put into config.json file,

{
    "database": {
        "connection": "<connection string>",
        "username": "<uname>",
        "password": "<passwd>"
    }
}

Copy / link libclntsh.dylib library isto /usr/local/lib. Now start the code with the following command.

swift run -Xlinker -L/usr/local/lib

About

A Swift experiment to connect to Oracle database via ODPI interface

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages