You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-15Lines changed: 25 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,31 @@
2
2
3
3
The GORM Driver for Oracle provides support for Oracle databases, enabling full compatibility with GORM's ORM capabilities. It is built on top of the [Go DRiver for ORacle (Godror)](https://github.com/godror/godror) and supports key features such as auto migrations, associations, transactions, and advanced querying.
4
4
5
-
## Prerequisite
5
+
## Prerequisite: Install Instant Client
6
6
7
-
### Install Instant Client
7
+
To use ODPI-C with Godror, you’ll need to install the Oracle Instant Client on your system. Follow the steps on [this page](https://odpi-c.readthedocs.io/en/latest/user_guide/installation.html) to complete the installation.
8
8
9
-
To use ODPI-C with Godror, you’ll need to install the Oracle Instant Client on your system.
9
+
After that, you can connect to the database using the `dataSourceName`, which specifies connection parameters (such as username and password) using a logfmt-encoded parameter list.
10
10
11
-
Follow the steps on [this page](https://odpi-c.readthedocs.io/en/latest/user_guide/installation.html) complete the installation.
11
+
The way you specify the Instant Client directory differes by platform:
12
12
13
-
After that, use a logfmt-encoded parameter list to specify the instant client directory in the `dataSourceName` when you connect to the database. For example:
13
+
- macOS and Windows: You can set the `libDir` parameter in the dataSourceName.
14
+
- Linux: The libraries must be in the system library search path before your Go process starts, typically configured using the `LD_LIBRARY_PATH` environment variable. The libDir parameter does not work on Linux.
0 commit comments