[Dbd-firebird-devel] DBD::FirebirdEmbedded available in the optional-libfbembed branch

Damyan Ivanov dmn at debian.org
Wed Oct 26 05:20:05 UTC 2011


The 'optional-libfbembed' branch contains a stream of commits that 
provide DBD::FirebirdEmbedded -- an automatically created, modified 
copy of DBD::Firebird, linked with the Firebird embedded library. This 
is made by Makefile.PL creating a copy of the sources in embed/ and 
mangling that a bit to provide DBD::FirebirdEmbedded. The full test 
suite is copied with 'embed' prefix too and adjusted to use the 
embedded driver. If fbembed is not available, a message is printed and 
the build continues as before, ignoring DBD::FirebirdEmbedded.

Among the way, there are a couple notable improvements.

 * creation/dropping of databases is made through driver methods and 
   no longer requires external ISQL
 * checking the database is also made via driver methods and not ISQL.

   These two, apart from dropping the hassle of running ISQL and 
   parsing its output, fix a problem when embedded test suite is run 
   on a system, whose ISQL is linked with fbclient -- such a binary 
   always tries to access the database via the locally running server, 
   which can't work in embedded mode due to access permissions and 
   unavailable authentication.

 * created test database's forced writes are turned off (again, via 
   a driver method, no external GFIX required). This speeds the tests 
   considerably.

The changes are many, but in the end DBD::Firebird acts exactly as 
before (with added functionality), and there is also 
DBD::FirebirdEmbedded, which can be tested completely isolated from 
the rest of the system, like on Debian autobuilders. All the embedded 
stuff is not simply a copy of the driver, but a copy which is made by 
Makefile.PL, so it would follow any changes in the traditional driver 
and there is no need to keep a fork in sync.

I think it is safe to merge to master and release, but because of the 
big number of commits, I don't mind if the code rests a bit for 
testing/commetnts/fixes.

Cheers!
    dam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/dbd-firebird-devel/attachments/20111026/4366ccbb/attachment.pgp>


More information about the Dbd-firebird-devel mailing list