1 /**
2  * Main module
3  *
4  * Include it to use common functions.
5  */
6 module dpq2;
7 
8 import derelict.pq.pq;
9 debug import std.experimental.logger;
10 
11 static __gshared bool __initialized;
12 
13 static this()
14 {
15     import std.concurrency : initOnce;
16     initOnce!__initialized({
17         debug
18         {
19             trace("DerelictPQ loading...");
20         }
21 
22         DerelictPQ.load();
23 
24         debug
25         {
26             trace("...DerelictPQ loading finished");
27         }
28         return true;
29     }());
30 }
31 
32 public
33 {
34     import dpq2.connection;
35     import dpq2.query;
36     import dpq2.result;
37     import dpq2.oids;
38 }