Skip to content

Commit 5f02026

Browse files
committed
Initial commit
1 parent cb80453 commit 5f02026

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+26407
-26
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
*Detailed instructions on how to contribute to the project, if applicable. Must include section about Oracle Contributor Agreement with link and instructions*
2-
31
# Contributing to this repository
42

53
We welcome your contributions! There are multiple ways to contribute.

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2023 Oracle and/or its affiliates.
1+
Copyright (c) 2025 Oracle and/or its affiliates.
22

33
The Universal Permissive License (UPL), Version 1.0
44

README.md

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,42 @@
1-
*This repository acts as a template for all of Oracle’s GitHub repositories. It contains information about the guidelines for those repositories. All files and sections contained in this template are mandatory, and a GitHub app ensures alignment with these guidelines. To get started with a new repository, replace the italic paragraphs with the respective text for your project.*
1+
# GORM Driver for Oracle
22

3-
# Project name
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.
44

5-
*Describe your project's features, functionality and target audience*
5+
## Prerequisite
66

7-
## Installation
7+
### Install Instant Client
88

9-
*Provide detailed step-by-step installation instructions. You can name this section **How to Run** or **Getting Started** instead of **Installation** if that's more acceptable for your project*
9+
To use ODPI-C with Godror, you’ll need to install the Oracle Instant Client on your system.
1010

11-
## Documentation
11+
Follow the steps on [this page](https://odpi-c.readthedocs.io/en/latest/user_guide/installation.html) complete the installation.
1212

13-
*Developer-oriented documentation can be published on GitHub, but all product documentation must be published on <https://docs.oracle.com>*
13+
After that, use a logfmt-encoded parameter list to specify the instanct client directory in the `dataSourceName` when you connect to the database. For example:
1414

15-
## Examples
15+
```go
16+
dsn := `user="scott" password="tiger"
17+
connectString="[host]:[port]/cdb1_pdb1.regress.rdbms.dev.us.oracle.com"
18+
libDir="/Path/to/your/instantclient_23_8"`
19+
```
1620

17-
*Describe any included examples or provide a link to a demo/tutorial*
21+
## Quick start
1822

19-
## Help
23+
```go main.go
24+
package main
2025

21-
*Inform users on where to get help or how to receive official support from Oracle (if applicable)*
26+
import (
27+
"github.com/oracle/gorm-oracle/oracle"
28+
"gorm.io/gorm"
29+
)
2230

23-
## Contributing
31+
func main() {
32+
dsn := `user="scott" password="tiger"
33+
connectString="[host]:[port]/cdb1_pdb1.regress.rdbms.dev.us.oracle.com"
34+
libDir="/Path/to/your/instantclient_23_8"`
35+
db, err := gorm.Open(oracle.Open(dsn), &gorm.Config{})
36+
}
37+
```
2438

25-
*If your project has specific contribution requirements, update the CONTRIBUTING.md file to ensure those requirements are clearly explained*
39+
## Contributing
2640

2741
This project welcomes contributions from the community. Before submitting a pull request, please [review our contribution guide](./CONTRIBUTING.md)
2842

@@ -32,13 +46,4 @@ Please consult the [security guide](./SECURITY.md) for our responsible security
3246

3347
## License
3448

35-
*The correct copyright notice format for both documentation and software is*
36-
"Copyright (c) [year,] year Oracle and/or its affiliates."
37-
*You must include the year the content was first released (on any platform) and the most recent year in which it was revised*
38-
39-
Copyright (c) 2023 Oracle and/or its affiliates.
40-
41-
*Replace this statement if your project is not licensed under the UPL*
42-
43-
Released under the Universal Permissive License v1.0 as shown at
44-
<https://oss.oracle.com/licenses/upl/>.
49+
Copyright (c) 2025 Oracle and/or its affiliates. Released under the Universal Permissive License v1.0 as shown at <https://oss.oracle.com/licenses/upl/>.

0 commit comments

Comments
 (0)