denizzzka / dpq2
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
version(DerelictPQ_Static){}
12
else
13
{
14
    static __gshared bool __initialized;
15

16
    static this()
17
    {
18
        import std.concurrency : initOnce;
19 1
        initOnce!__initialized({
20
            debug
21
            {
22 1
                trace("DerelictPQ loading...");
23
            }
24

25 1
            DerelictPQ.load();
26

27
            debug
28
            {
29 1
                trace("...DerelictPQ loading finished");
30
            }
31 1
            return true;
32 1
        }());
33
    }
34
}
35

36
public
37
{
38
    import dpq2.connection;
39
    import dpq2.query;
40
    import dpq2.result;
41
    import dpq2.oids;
42
}

Read our documentation on viewing source code .

Loading