Not a great solution, but I got it to work by adding the ddb source files to my project's dub.json file.
{
"name": "foo",
"description": "A simple vibe.d server application.",
"copyright": "Copyright © 2014, scmjpg",
"authors": ["scmjpg"],
"dependencies": {
"vibe-d": "~master",
"ddb": "~master"
},
"versions": ["VibeDefaultMain", "Have_vibe_d"],
"sourceFiles": [
"/home/scmjpg/.dub/packages/ddb-master/source/postgres.d",
"/home/scmjpg/.dub/packages/ddb-master/source/ddb/db.d",
]
}
I guess the real solution is to convince the ddb developers to match the module and the directory structures.