Download the PHP package fastbolt/fabric-importer without Composer
On this page you can find all versions of the php package fastbolt/fabric-importer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package fabric-importer
fabric-importer
A package to import data from Microsoft Fabric.
Prerequisites
The library is tested with PHP 8.2 and 8.3 and relies on doctrine.
Installation
The library can be installed via composer:
Ubuntu SQL / ODBC driver installation (Ubuntu 22.04 LTS, currently only available for PHP up to 8.3)
Configuration
If not configured automatically, the bundle needs to be enabled in your project's bundles.php file:
Add a config/fabric_importer.yaml.
Doctrine Configuration
Both connection and entity manager configuration needs to be moved under the default or any other namespace, instead of using the standard single-connection config scheme in config/doctrine.yaml:
Initialization
Run this command to create the fabric_syncs table in your database. Every time an import ran, a save will be added to this table. Then the oldest entries are deleted.
Usage
Run this command to import the data
To define an import, extend the FabricImporterDefinition and implement / overwrite its methods. Here is an example.
Notes
- If your table has any composite constraints, make sure they are defined in the entity&table, otherwise the import will duplicate rows, regardless of what you return from the identiferMapping method.
All versions of fabric-importer with dependencies
doctrine/persistence Version ^2.4|^3.0
symfony/http-foundation Version ^6.4.29
symfony/config Version ^6.0
symfony/filesystem Version ^6.0
symfony/framework-bundle Version ^6.4
doctrine/doctrine-bundle Version ^2.6
doctrine/orm Version ^2.12|^3.2