From 4ae92020ac78840aa51e78539456066554b53b7e Mon Sep 17 00:00:00 2001 From: Robert Klotzner Date: Sat, 12 Jan 2013 15:08:49 +0100 Subject: [PATCH] Documentation improvements. --- querygenerator.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/querygenerator.d b/querygenerator.d index b37c6be..2b5b341 100644 --- a/querygenerator.d +++ b/querygenerator.d @@ -256,6 +256,11 @@ string createQueryGenerator(string preSql) { The outputs of each loop iteration will be separated with " or " by default, you can change this, by setting queryGenSep in the declaration part. + data_ = The contents of data_ will be made available to the D expressions and declarations in the queryString. (The code gets embedded withing a with(data_) { ... }) + + params = Additional data you need in the queryString. You can access it via params[0], params[1], ... + If you happen to have a member of data_ which is named params, you will have to access it via data_.params. + */ CreatedQuery createQuery(string queryString, StructT, Params...)(StructT data_, Params params) { debug(queryGenerator) import std.stdio;