javer / influxdb-data-fixtures
Provides integration of InfluxDB ODM with Doctrine Data Fixtures
Installs: 19 341
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 1
Open Issues: 1
Requires
- php: >=8.1
- doctrine/data-fixtures: ^1.3
- javer/influxdb-odm: ^1.0
Requires (Dev)
- phpstan/phpstan: ^1.0
- squizlabs/php_codesniffer: 3.8.*
- swivl/php-coding-standard: ^1.4
This package is auto-updated.
Last update: 2024-11-09 19:20:03 UTC
README
The InfluxDB Data Fixtures is a library that provides data fixtures functionality for InfluxDB.
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Open a command console, enter your project directory and execute:
$ composer require javer/influxdb-data-fixtures
Usage
Refer to the Doctrine Data Fixtures Extension documentation about how to manage and execute the loading of data fixtures for the Doctrine ODM.
To execute the InfluxDB fixtures:
use Javer\InfluxDB\DataFixtures\Executor\MeasurementExecutor; use Javer\InfluxDB\DataFixtures\Purger\MeasurementPurger; $purger = new MeasurementPurger($measurementManager); $executor = new MeasurementExecutor($measurementManager, $purger); $executor->execute($loader->getFixtures());