1 structure Pref
:> PREF
=
7 case C
.oneOrNoRows (getDb ()) ($`SELECT
* FROM DirectoryPref WHERE usr
= ^
(C
.intToSql usr
)`
) of
11 fun setDirectory usr
=
12 if hasDirectory usr
then
15 ignore (C
.dml (getDb ()) ($`INSERT INTO
DirectoryPref (usr
) VALUES (^
(C
.intToSql usr
))`
))
17 fun unsetDirectory usr
=
18 ignore (C
.dml (getDb ()) ($`DELETE FROM DirectoryPref WHERE usr
= ^
(C
.intToSql usr
)`
))