how to create an berkeley db using java - berkeley-db

i am new to berkeley db . i have installed the berkely db using link text
so i need to create my first db i have checked the sample programs but i coudnt find it easy please help me to create an sample db ...and how to use the API for java

Your best bet is to read the documentation starting with the Getting Started Guide.

Your best bet is to read the documentation starting with the Getting Started Guide.

Related

how to migrate a gupta (SQLBase) database to MySQL (including data)

Im trying to migrate a Gupta DB to MySQL. I already have a script to create every Table (with indexes and comments) and views I need in MySQL (table-, view- and column-names as well as column-types are equal in gupta as well as MySQL). But now I cant figure out how to read data from the old SQLBase Database and "import it" into the new MySQL database.
i thought of reading the old data from SQLBase and writing it in a file to then read it somehow via MySQL to import it. the Problem here is that for some tables there are more than 1 million records which i can not lose a single one of....
You can ETL natively from Gupta 'SQLBase' very easily. But you need to read the manual appropriate for your SQLBase version here: Gupta SQLBase manuals ( all verions ) , specifically, you need to read the 'UNLOAD' command in the 'Language Reference' manual. But best advice is: Don't do it ! Upgrade to SQLBase v12.2 instead.

Produce client deliverable artifacts

very new to flyway and have added it to my project using flyway-maven-plugin.
using oracle 11g db.
Looks to be great for database versioning in a development environment but can anyone tell me:
how to use to produce database create/upgrade artifacts that i can send to a customer.
we have packages, data, ddls etc (that would be nice inside an installer)
Thanks in advance.
You can always bundle the migrations directly with the Flyway Command-line tool and send that.

Is there a way to get data GUI view in Meteor.js?

Is there a way to get data GUI view in Meteor.js?
If yes please enlighten me, as I am new to meteor. I just need to know what is the best way to access database in meteor mongodb...
Thanks!!!
Use either:
Z Mongo Admin, a meteor package similar to Django admin. This is
probably the closest to what you're looking for:
http://www.youtube.com/watch?v=ixJyB8Z-tU8&list=UU3fBiJrFFMhKlsWM46AsAYw
One of the many Mongo GUIs, I use both robomongo
(http://robomongo.org/) and mongohub
(https://github.com/bububa/MongoHub-Mac) on OSX.
I've found that this little package called Mongol is good for development to have a quick and easy way to look at your data right from within your web app.
https://github.com/msavin/Mongol
RoboMongo provides a good UI for Mongo DB (Download link). When i tried with meteor, follow these steps:
Run Meteor cd ing into your Project Folder (usually runs at http://localhost:3000/)
Download and Install the Robomongo from the Download link
Create a new connection in the robomongo UI, clicking on the following icon:
Connect to port number 3001 instead of default 27017, and you can see the mongo db and it's contents
There's no GUI given. You can access db from command line by using meteor mongo while your server is running.
Appreciate the mention for Mongol!
I wanted to say that there is now one more option for viewing and interacting with data in your Meteor app called Meteor Candy. It's a little less raw than viewing JSON, which makes it far more palatable for non-developers. And of course, there is still an option to view raw JSON :)

How to connect Dart to SQLite?

My old application used web2py with SQLite as the database. Now I want to try porting this app to Dart and again use SQLite as the database.
I can't find any documentation on how to use it. I just found out how to use MySQL with sqljocky.
I've tried to read the web_sql and indexed_db APIs, but I can't find a way to connect to SQLite. How can I use SQLite from Dart?
As far as I can tell, dart-sqlite is the only public attempt at SQLite bindings for Dart, but it's out of date. My guess is that it would actually be pretty easy to update the code and get it up-and-running.
web_sql and indexed_db are both for use in the browser, which, as far as I can tell from your question, isn't what you're looking for.
Update: I updated dart-sqlite so that all the tests now pass, at least on my machine. You're definitely venturing into uncharted territory if you use it, but it's a start.

getting started with flyway for one with no java experience

I am interested in testing flyway and if I am not wrong I read that it supports db changes both through java and SQL. I am a dba and familiar with SQL but not java.
I read through the “Getting Started” page and wanted to try out the sample application available under the “Downloads tab” link however I couldn’t find any readme document explaining the available downloads which appeared to contain .jar files.
Q) is there an instruction manual for a newbies to explain how to put together this sample application?
Q) can one uses flyway without knowing java? If yes, please provide any how-to url/notes/documents available. If not do you have any how-to for one to get started with java just enough to operate this tool?
Thanks Bob
I think you might find the command line tool useful:
http://flywaydb.org/documentation/commandline/
As it says on the website:
The Flyway command-line tool is meant for users who
do not run their applications on the JVM
wish to migration their database from the command-line without having to install Maven
You may need to browse the source code to figure out some more details:
https://github.com/flyway/flyway
Although I think you should be able to adapt the regular documentation to the CLI option.
Try starting here:
http://flywaydb.org/getstarted/existingDatabaseSetup.html

Resources