Code Monkey home page Code Monkey logo

Comments (6)

julianpaulozzi avatar julianpaulozzi commented on July 17, 2024

The error message (Invalid database version: 6) comes from the exception catch when creating an instance of LiteDatabase.
Can you try running this with this DB file to see if it works?

public void OpenDatabase(string filePath)
{
    try
    {
        var liteDatabase = new LiteDatabase(filePath);
    }
    catch (Exception e)
    {
        Console.WriteLine("Failed to open database: " + e.Message);
        throw;
    }
}

from litedbexplorer.

informacione avatar informacione commented on July 17, 2024

Thank you Julian,
Maybe you thing that I am some kind of coder :)
I don't know where to put this code?

from litedbexplorer.

julianpaulozzi avatar julianpaulozzi commented on July 17, 2024

I understand, to run this you would have to have some basic dotnet programming skill.
Are you sure this file is from LiteDB version >= 4? How old is this file?

You can also try on other viewers:
A GUI viewer tool: https://github.com/falahati/LiteDBViewer
LiteDB Manager tool : https://darwich.mx/downloads/

from litedbexplorer.

informacione avatar informacione commented on July 17, 2024

Yes I have found a way to open it with LiteDBViewer4 - this app converts me to name.v3.db from name.db
Only after this i can open the file with LiteDbExplorer.

The problem is that I can not turn the file back to its original version after making the changes.

Thank you again

from litedbexplorer.

julianpaulozzi avatar julianpaulozzi commented on July 17, 2024

This project relies on and directly uses LiteDB v4 assembly, if core LiteDB v4 is not compatible with older versions this project is not also in a simple way.
You can try an old version of the original project (maybe 0.5), see: https://github.com/JosefNemec/LiteDbExplorer/releases

Another option to try would be to create a new build of this project by doing the dowgrade of the LiteDB DLL version (require dotnet skill), but something must break due to version Breaking changes.

Anyway when I have time I will try to test this to see if it works.
I will also take advantage to implement the upgrade process as in LiteDbExplorer.

from litedbexplorer.

julianpaulozzi avatar julianpaulozzi commented on July 17, 2024

Without pretense of supporting versions prior to 4 this issue will be closed.

In version 0.8.0 the error message on the case was improved and in the future a tool will be added for one way migration from version 3 to 4.

If you have more information and/or questions please comment or open a new one.

from litedbexplorer.

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.