{"repo":"oracle-samples/gorm-oracle","free":true,"listed":false,"github":"https://github.com/oracle-samples/gorm-oracle","clone":"git clone https://github.com/oracle-samples/gorm-oracle.git","description":"The GORM Driver for Oracle brings full ORM support for Oracle Database to your Go applications","language":"Go","stars":17,"topics":["go","golang","gorm","oracle","orm"],"license":"UPL-1.0","category":"databases-storage","readme_excerpt":"GORM Driver for Oracle The GORM Driver for Oracle provides support for Oracle Database, enabling full compatibility with GORM's ORM capabilities. It is built on top of the Go Driver for Oracle (Godror) and supports key features such as auto migrations, associations, transactions, and advanced querying. Prerequisite: Install Instant Client To use ODPI-C with Godror, you’ll need to install the Oracle Instant Client on your system. Follow the steps on this page to complete the installation. 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. The way you specify the Instant Client directory differs by platform: - macOS and Windows: You can set the libDir parameter in the dataSourceName. - Linux: The libraries must be in the system library search path before your Go process starts, preferably configured with \"ldconfig\". The libDir parameter does not work on Linux. Example (macOS/Windows) Example (Linux) Getting Started Documentation OnUpdate Foreign Key Constraint Since Oracle doesn’t support ON UPDATE in foreign keys, the driver simulates it using triggers . When a field has a constraint tagged with OnUpdate , the driver: 1. Skips generating the unsupported ON UPDATE clause in the foreign key definition. 2. Creates a trigger on the parent table that automatically cascades updates to the child table(s) whenever the referenced column is changed. The OnUpda","default_branch":null,"files":null,"tree":[],"storefront":"/r/oracle-samples","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/oracle-samples/gorm-oracle/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}