Download the PHP package rishadblack/oracle-table-linker without Composer
On this page you can find all versions of the php package rishadblack/oracle-table-linker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rishadblack/oracle-table-linker
More information about rishadblack/oracle-table-linker
Files in rishadblack/oracle-table-linker
Package oracle-table-linker
Short Description A Laravel package for Oracle database users, allowing seamless management of database-linked tables and aliases with automated first-call handling and dynamic aliasing.
License AGPL-3.0
Homepage https://github.com/rishadblack/oracle-table-linker
Informations about the package oracle-table-linker
Oracle Table Linker
Oracle Table Linker is a Laravel package specifically designed for managing database-linked tables and aliases in Oracle databases. This package provides a convenient trait that simplifies the handling of table names and aliases, ensuring seamless integration with Laravel models.
Description
Oracle Table Linker enhances Laravel's capabilities by allowing developers to manage database-linked tables more efficiently. The package provides a trait, HasDbLink
, which handles dynamic aliasing and first-call handling. This feature is particularly useful for Oracle databases where table names may include database links.
Features
- Dynamic Aliasing: Automatically handles table aliasing based on database link presence.
- First-Call Handling: Manages the first call to ensure proper alias usage.
- Easy Integration: Easily integrates with Laravel models using a simple Artisan command or manual addition.
Installation
Via Composer
To install Oracle Table Linker, use Composer to add it to your Laravel project. Run the following command:
Usage
Automatic Package Discovery
This package uses Laravel's automatic package discovery, so no additional configuration is required. Once installed, it will be automatically discovered and registered in your Laravel application. Adding the Trait to a Model
You can add the HasDbLink trait to your model either manually or using the Artisan command.
Manually
To add the trait manually, include the following line at the top of your model file:
Then, add the HasDbLink trait to the class:
Using Artisan Command
You can also use the Artisan command to automatically add the trait to your model. Run the following command:
Replace YourModel with the name of your model. This command will add the HasDbLink trait to the specified model.