[Box Backup-dev] Thinking of the future...
Ben Summers
boxbackup-dev@fluffy.co.uk
Sat, 28 Jan 2006 10:11:02 +0000
Probably a bit premature, but I have the following code in my own
repository which *could* be contributed, and might be useful to
others. All in the Box house style.
* Database interface
Combination of autogenerated code and standard C++ style code which
allows easy, type-safe and fully named access to databases. Includes
drivers for MySQL, Postgresql (text and binary mode) and Sqlite, with
a system for abstracting out the differences in SQL syntax. Two lines
of code to run a query and get the results.
* Web application framework
This is a bit of a "version one learning experience", but it's a load
of perl which writes C++ which complies into a standalone HTTP
server. Basically, it writes all the boring boilerplate code for
forms, internationalisation, and data binding to database queries.
Could be used for writing a nice cross-platform UI for bbackupd/
bbackupquery. Not perfect, but usable, if a bit weird to get into.
As a side effect, there's a nice library for writing your own HTTP
server and handling form data, perhaps useful as the basis of an
inter-process comms thingy.
* SMTP client
Class for easily sending email via STMP servers, and validating
emails addresses (including looking up the RHS in DNS). Might be
handy for sending notifications direct, instead of via the dodgy perl
script.
Anyone interested?
I hope the developers have noticed that Box Backup is mostly a
generic framework for writing UNIX daemons and clients really quickly
and easily.
Ben