javer/influxdb-data-fixtures

Provides integration of InfluxDB ODM with Doctrine Data Fixtures

v1.1.0 2024-01-09 12:19 UTC

This package is auto-updated.

Last update: 2024-10-09 19:12:13 UTC


README

The InfluxDB Data Fixtures is a library that provides data fixtures functionality for InfluxDB.

Build Status

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());