utsengar / bdb-interactive-shell

Interactive Berkeley DB (Java) Shell
4 stars 0 forks source link

How to use it.. #1

Closed mdawais9 closed 11 years ago

mdawais9 commented 11 years ago

Hi, Utkarsh ! It seems u have done a gr8 job. I want to know whether it will open .jdb file, which is log files or not ? also let me know the steps to run it. I dont have maven installed.

Thanks in advance.

mdawais9 commented 11 years ago

Hi, I have done with creating jar, as mentioned by you. However it gives me 'Nope, wrong path, try again' even i am giving path of a folder which contains .jdb & .lck file.

Plz reply

utsengar commented 11 years ago

Hi @mdawais9, it was a version issue. I wrote this 2years ago just to play around with berkeleydb. I have upgraded the version for now and it works, I was successfully able to connect to a bdb directory.

utkarsh@x (master *) ~/dev/bdb-interactive-shell/target: java -jar bdb-shell-0.0.1-SNAPSHOT-jar-with-dependencies.jar
Please provide path to BDB: /Users/utkarsh/Desktop/bdb
BDB: /Users/utkarsh/dev/bdb
We are connected!
bdb>quit

Please update your code and create the jar again. Hope it helps.

mdawais9 commented 11 years ago

Ohk Thanks alot, one more question please, Is there any way to open .jdb files to display the databases & tables. I need any utility that can open any jdb file & show its contents.

Please reply , i am really in need of such tool/utility.

Thanks in advance

mdawais9 commented 11 years ago

I can connect to the database now, there i can get & put key,value pairs as shown in examples, however i think the databse doesn't stores the values which er are putting in it, so please suggest any way to make it persistent.

regards, awais