Code Monkey home page Code Monkey logo

Comments (5)

mom040267 avatar mom040267 commented on April 29, 2024

Flat file database was replaced with sqlite database and will not be restored. It is too difficult to maintain.

Sent from my iPhone

On Apr 15, 2016, at 7:28 AM, zbuf [email protected] wrote:

Hi, I'm looking for some clarification on the removal of flat-file user database.

It was removed after version 4.2.3.1 in commit b9ef9f4 ("working on sqlite support") with no further comment.

What is the reason for its removal, and is it something which could be restored?

Are there any extra considerations that make flat-file functionality unusable? Or was it simply removed because it did not fit into the 'dbdrivers' hierarchy?


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

from coturn.

zbuf avatar zbuf commented on April 29, 2024

Is there some difficulty that is not immediately apparent? eg. threading.

Because whilst I am not yet familiar with the code, it it does seem that the flat file functionality could sit in a self-contained way within 'dbdrivers' hierarchy -- possibly much simpler than the database drivers, as there is only the reading of username-password to do.

If I were to look further into the code, which aspects make this difficult?

Thanks

from coturn.

mom040267 avatar mom040267 commented on April 29, 2024

It would actually be more difficult, because you have to parse the file and somehow update the file. Sqlite is simple and efficient. If you need database that is contained in a single viewable file then use sqlite.

Sent from my iPhone

On Apr 15, 2016, at 9:45 AM, zbuf [email protected] wrote:

Is there some difficulty that is not immediately apparent? eg. threading.

Because whilst I am not yet familiar with the code, it it does seem that the flat file functionality could sit in a self-contained way within 'dbdrivers' hierarchy -- possibly much simpler than the database drivers, as there is only the reading of username-password to do.

If I were to look further into the code, which aspects make this difficult?

Thanks


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

from coturn.

zbuf avatar zbuf commented on April 29, 2024

Ok, that is just the work I would expect for any file reader. Is it valid to implement only a subset of the methods in _turn_dbdriver_t and will this prevent some key functionality of the server?

from coturn.

mom040267 avatar mom040267 commented on April 29, 2024

I personally think that this not a good idea. If you want to do that then you will have to find out which parts you have to implement.

Sent from my iPhone

On Apr 15, 2016, at 10:01 AM, zbuf [email protected] wrote:

Ok, that is just the work I would expect for any file reader. Is it valid to implement only a subset of the methods in _turn_dbdriver_t and will this prevent some key functionality of the server?


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

from coturn.

Related Issues (20)

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.