aaronc / ddbi

Database independent interface for the D programming language.

This URL has Read+Write access

ddbi / testddbi.d
100644 23 lines (15 sloc) 0.361 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module testddbi;
 
import tango.util.log.Log,
       tango.util.log.Config;
 
import dbi.DBI;
 
void main(char[][] args) {
auto logger = Log.getLogger(args[0]);
logger.info("testing ddbi");
 
if (args.length > 1) {
auto db = getDatabaseForURL(args[1]);
db.test;
 
} else {
logger.error("usage: testddbi DBURL");
}
 
logger.info("testing complete");
}