Coder Social home page Coder Social logo

Comments (3)

fsanaulla avatar fsanaulla commented on July 19, 2024

@aveuiller what about specifying the path to existing config file, without parsing. See this.

from embed-influxdb.

aveuiller avatar aveuiller commented on July 19, 2024

That's already what we are doing in the end, so yes ultimately we don't have to parse the configuration file.

Having said that, the embedded influx server is made to automatically remove the created data directory on server stop (hence the getDataPath function in the interface).
This leads to 2 possibilities: either we don't care about deletion if the user gives us an already written file, or we ask the user for the directory to remove on server stop.

I don't really like both of the solutions since it duplicate the dataPath information, already present in the configuration file. But I think we can let the user choose if he wants some file deleted at the end of the tests, for instance by providing two constructors.

What do you think about it?

from embed-influxdb.

fsanaulla avatar fsanaulla commented on July 19, 2024

@aveuiller I think to let a user choose when to delete data, it's a nice option.

from embed-influxdb.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.