Bldb concept

From Bioinformatics.Org Wiki

Jump to: navigation, search

Mystica Arrow set (with deep) 1.png BioLegato#bldb return to bioLegato



Bldb is intended as a database client for querying and for editing database content. Ideally, the database should be any SQL database as a back end.

ACeDB is a good model for client behavior. Its strengths include an abilty to do either simple queries or complex queries without having to know SQL. As well, ACeDB is able to display individual records (objects) as popup windows in which individual data fields can be clicked on, resulting in the records they point to popping up. Complex queries are done using Query by Example. There are two main reasons for replacing ACeDB. First, the code is old C code and is no longer being developed or supported. The second is that ACeDB includes the client and database engine in a single program, and the ACeDB database engine doesn't scale well to large databases.

bltable vs. bldb - Superficially, there seem to be many advantages to implementing bldb by extending bltable. That would require re-casting the existing String type, used for the contents of each cell, into Object. This my be a very good investment, in the long run, because improvements in bltable would automatically be inherited by bldb..

Implementation Strategy

ACeDBtoBLdb transition.png

The main idea is to evolve birchdb in such a way that components are created in such an order that we never break the important functionalities.

0. add hsql to BIRCH

We do this step first because it doesn't break anything, and it is critical for all later steps.

1. ace2hsql

ace2hsql is a script or program that dumps the contents of the birchdb database (both core and local) to an ACeDB flatfile (.ace), and updates the existing birchdb copy in the hsql databse. At this point we are still doing all actual work on the birchdb database using ACeDB, but the contents of birchdb get mirrored to the hsql database.

2. modify to extract records from birchdb

This step assumes an up to date mirror of birchdb is found in the hsql database. The existing script knows how to read the .acefile from the ACeDB version of birchdb. We need to teach how to also do its input from the hsql birchdb.

At this point, we are still doing all changes to the ACeDB copy of the database, but mirroring changes to hsql.

3. commandline broker for hsql

The commandline broker for hsql knows how to do transactions with the hsql database at the command line. The idea is that its input is simple. You shouldn't need to know how to write SQL to run this.

Commands include:

4. bldb front end for database

When this step is complete, we will have a fully-functional birchdb, using the hsql database engine and BioLegato client as a GUI.


Individual records can be viewed, as in ACeDB (or the old HyperCard).

Personal tools
wiki navigation