blob: ed9dae99a4eb4effd9a05f1271be49b7f9b004eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
%D \module
%D [ file=m-sql,
%D version=2012.07.12,
%D title=\CONTEXT\ Extra Modules,
%D subtitle=SQL,
%D author=Hans Hagen,
%D date=\currentdate,
%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
\startmodule[sql]
\registerctxluafile{util-tpl}{}
\registerctxluafile{util-sql}{}
\ifcase\contextlmtxmode\else
\registerctxluafile{libs-imp-mysql}{}
\registerctxluafile{libs-imp-sqlite}{}
\fi
\setupmodule
\doifsomething {\currentmoduleparameter{method}}{
\ctxlua{utilities.sql.setmethod("\currentmoduleparameter{method}")}
}
\doifsomething {\currentmoduleparameter{server}} {
\ctxlua{utilities.sql.setserver("\currentmoduleparameter{server}")}
}
\stopmodule
|