“dba” v0.2

http://www.kfs.org/~oliver/dba/

Version 0.2  2010/03/01 [ Status:: MySQL: working; SQLite: working ]
  1. Completed a number of incomplete functions.
  2. Brought the SQLite interface up to working status.
  3. Some convenience functions (variadic constructors).
  4. Fixed numerous bugs.
  5. Significantly bolstered “main.cpp”

  • Added variadic ResultSet snprintf-based constructor:
    • ResultSet rs(Connection&, const char* format, size_t maxStatementLen, …) ;
  • Replaced ‘report’ parameter in ‘Connect’ with ‘flags’.
  • Added static DefaultFlags() member to MySQLConnection and SQLite Connection.
  • Added DBA_DEFAULT_FLAGS_<dbname> optional define for specifying custom defaults.
  • Added “driver” field to Credentials (for SQLite vfs support)
  • Added bool HasAccurateRowCount() member to Connection classes
  • Added SQLite friendly constructor for credentials:
    • Credentials creds(“databasename”) ;
    • (May seem excessive, but may allow for encrypted databases later)
  • Improved main.cpp (primarily a functionality testing module):
    • Default is to run quietly with an success status,
    • “-v” argument invokes verbose output,
    • Only outputs errors on failure or if -v is specified,
    • Tests all supported database modules with the same code
      (I started writing a seprate SQLite test routine; this IS supposed to be an abstraction API after all!)

2 Comments

Looks nice !

Thanks :) I’m hoping to get some criticism / feedback / requests :)

Leave a Reply

Name and email address are required. Your email address will not be published.

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

You may use these HTML tags and attributes:

<a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <pre> <q cite=""> <s> <strike> <strong> 

%d bloggers like this: