https://github.com/javer/influxdb-data-fixtures
Provides integration of InfluxDB ODM with Doctrine Data Fixtures
https://github.com/javer/influxdb-data-fixtures
Last synced: about 2 months ago
JSON representation
Provides integration of InfluxDB ODM with Doctrine Data Fixtures
- Host: GitHub
- URL: https://github.com/javer/influxdb-data-fixtures
- Owner: javer
- License: mit
- Created: 2020-10-18T21:28:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-09T17:31:59.000Z (over 1 year ago)
- Last Synced: 2025-01-29T09:18:07.284Z (4 months ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
InfluxDB Data Fixtures
======================The InfluxDB Data Fixtures is a library that provides data fixtures functionality for InfluxDB.
[](https://github.com/javer/influxdb-data-fixtures/actions/workflows/test.yaml)
Installation
============Make sure Composer is installed globally, as explained in the
[installation chapter](https://getcomposer.org/doc/00-intro.md)
of the Composer documentation.Open a command console, enter your project directory and execute:
```console
$ composer require javer/influxdb-data-fixtures
```Usage
=====Refer to the [Doctrine Data Fixtures Extension](https://github.com/doctrine/data-fixtures) documentation
about how to manage and execute the loading of data fixtures for the Doctrine ODM.To execute the InfluxDB fixtures:
```php
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());
```