diff options
Diffstat (limited to 'support/nlatexdb/examples/test2.tex')
-rw-r--r-- | support/nlatexdb/examples/test2.tex | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/support/nlatexdb/examples/test2.tex b/support/nlatexdb/examples/test2.tex new file mode 100644 index 0000000000..0c2f6466bb --- /dev/null +++ b/support/nlatexdb/examples/test2.tex @@ -0,0 +1,21 @@ +\documentclass[a4paper]{article} +\usepackage[latin1]{inputenc} +\begin{document} +\newcommand{\texdbconnectionnet}[2]{} +\newcommand{\texdbdef}[3]{} +\newcommand{\texdbfor}[2]{#2} +\newcommand{\texdbif}[2]{#2} +\newcommand{\texdbcommand}[1]{} +\texdbconnectionnet{Mono.Data.Sqlite}{URI=file:kleinertest.db3} +\texdbdef{??personqry}{select id, firstname, lastname, gender, gender from person}{??id,??firstname,??lastname,??gender/m/male/f/female,??pronoun/m/He/f/She} +\texdbdef{??phoneqry}{select phonenumber, phonetype from telephone where fk_person = ??id}{??phonenumber,??phonetype} +\texdbfor{??personqry}{There is a certain ??firstname ??lastname in the database. ??pronoun is ??gender. + +\texdbif{??phoneqry}{ +Phone numbers: + + \begin{tabular}{ll} +\texdbfor{??phoneqry}{??phonenumber & ??phonetype \\} +\end{tabular} +}} +\end{document} |