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