You already know MultiValue. This set does not teach it.
SD Core for Windows is built from upstream sdb64, a MultiValue database
with elements found in the main SD version and in ScarletDME. ScarletDME was
a fork of the original GPL release of OpenQM 2.6.6.
That lineage matters when you go looking for documentation. Not all the features of the commercial OpenQM 2.6.6 were in the GPL release, and no documentation specific to the GPL version was ever released. So even the OpenQM documents are not authoritative here.
The OpenQM 2.6.6 documents can be used as a reference, but SD Core has additions, changes and deletions — of features, of structure, of security and of commands. These pages cover those changes.
If you have used OpenQM, or upstream sdb64, much of SD Core will still be
familiar: the same data model, the same query processor, the same BASIC. If you
are bringing programs over from another MultiValue database, start with
Migrating to SD.
SD Core for Linux is a separate product, built independently — see SD Core for Linux. The two behave alike — what a verb does, what it refuses and why, its messages — while the mechanism underneath differs where the operating system does. Where this set says something differs from SD Core for Linux, that is usually why.
What "used to" means in these pages#
These pages describe changes, so used to, no longer and now
run all through them. The comparison is against the code this version was
made from — upstream sdb64, and ScarletDME and OpenQM 2.6.6 behind it.
Some of the changes are Windows-only and have no upstream original to differ from. What changed since an earlier release of SD Core for Windows is on the Differences from W1.0-0 page and in the Changes document.
The pages#
The pages are numbered. Read them in numerical order the first time; after that they stand alone.
A number with a letter after it continues the page before it, split so
that no page runs longer than a reader will scroll: 01a continues 01, and
so on.
| 00 | Start here | this page — what the set is and what it leaves out |
| 00a | Copyright and license | The copyright and the license for this set, in full and in one place |
| 01 | Installing SD Core for Windows | What the installer does, and the choices it offers |
| 01a | Upgrading and uninstalling | Installing a new release over an existing one, and taking SD off the machine |
| 02 | Your first thirty minutes | Start here if you just want it working — install to a second user signing in, in eight steps |
| 03 | Running SD | The service, starting and stopping, and recovering from an unclean shutdown |
| 04 | Scheduled jobs | Running an SD command on a timer, and the permit list that decides which ones |
| 05 | Accounts | Ordinary accounts, SDSYS, Suspended and Group — what each one may do, and how to make one |
| 05a | Managing accounts | Group accounts, sharing one, changing an account afterwards, and deleting it |
| 06 | Administrator commands | The verbs only SDSYS has, and how to use them |
| 07 | Development and file commands | Compiling, editing, and the verbs that maintain files, indexes and records in bulk |
| 08 | ssh access | How people reach SD on this machine, and why it is ssh |
| 09 | API access | The client API, its port, and the SCRAM login |
| 10 | Client distribution | Which library an application needs, and the one file no installer can update |
| 11 | Lower case | Case in commands, file names, record ids and account names |
| 12 | Security | The identity model, and what protects the database |
| 12a | Security and the operating system | Reaching the machine from inside SD, how privileged work is done, and the audit trail |
| 13 | Other hardening | The global catalog, the pcode library, scheduled jobs, the logs, line endings, the terminal, and running SD |
| 14 | Not in SD Core for Windows | What has been removed, and what to use instead |
| 15 | Migrating to SD | Bringing programs and queries from another MultiValue database: where the compatibility words are set, and the words SD does not accept |
| 15a | Option words | The words of the option command, one line each |
| 15b | Mode words | The names $mode accepts and the lines of a $basic.options record, one line each |
The five things most likely to surprise you#
1. Signing in asks for no password. Windows has already authenticated you.
sd puts you in the SD account with your own name; if there is no such
account, or you are not in the sdusers group, you are refused.
Administration is gated on being signed in to Windows as SDSYS, a single
account the installer makes — not on being a Windows administrator, elevated
or not, and not on a secret SD holds. See Security.
2. Accounts SD creates cannot log in to Windows at this machine. They are
denied the physical console and Remote Desktop, deliberately. They reach SD
over ssh, or through an API client, or both — chosen when the account is
created, defaulting to neither if you say nothing. A new account has no ssh,
no API, no shell and no OS.EXECUTE, and cannot save a change to a VOC, a
program file or a dictionary, until SDSYS gives them. SD is delivered with the
tighter setting, and the administrator loosens it one account and one switch at a
time: ssh, api, both, sh-on, os-on, voc-on, bp-on and dict-on, at
create.account or later with modify.account. SDSYS has no ssh route, and its
API door from another computer is shut until the administrator opens it
(remote.sdsys api on); remote administration over ssh is the separate account
SDRADMIN (remote.sdsys on), also shut as delivered. Multi-user access over
Remote Desktop is not supported and is not a gap to be filled later. See
ssh access and API access.
3. Every account gets the same VOC. There is no reduced starting set any
more — the account-tier model (standard/programmer/administrator) is
gone. What an account cannot do is administer: that is SDSYS alone, and
SDSYS is not something create.account can produce.
See Accounts.
4. Commands and names are lower case now, completely. Everything that
can be lower case is — names on disk, VOC entries, program and include
names, and the files create.file makes — with upper-case input converted
on the fly, so no command, file or record id can exist in two casings. See
Lower case.
And one that carries over unchanged: the API login is SCRAM. There is no cleartext login, so a client that sends the password in clear will not connect. See API access.
What this release is#
WC2.0-0. Windows only, and English only. SD Core for Linux is a separate project and this is not a build of it.
It is a hobby project with no release schedule.
This set is the delta. It covers installing SD Core on Windows, running it, and what differs from OpenQM and from SD on Linux. The reference for the language and the command processor is a separate set, and so is the administrator's.
Where the source is#
Both repositories are public, and everything in them is open source. SD is
GPL software — config gpl at an sd prompt displays the license, and the
installed tree carries it as a file.
| The server, the client libraries and the installer | https://github.com/dmontaine/SDCore4Windows |
| These pages | https://github.com/dmontaine/SDCore4WindowsDocs |
Neither repository contains a built binary, deliberately — no .exe, no
.dll, no object files. A clone builds. That is why installing means building,
and why there is no download of a compiled artifact in the repository itself.
The documentation repository holds the Markdown only; the HTML and PDF you are reading are generated from it and are not stored there.
Reporting what you find#
Open an issue on the server repository — https://github.com/dmontaine/SDCore4Windows/issues — for anything about SD itself, and on the documentation repository for an error in these pages. If you are not sure which, the server one is the right guess.
Issues rather than pull requests. Both repositories are readable by anyone and writable only by the author, so a change cannot be merged from outside; a clear issue is worth more than a patch nobody can apply. A patch attached to an issue is welcome, it just travels that way.
The two things worth reporting in most detail are anything that behaves differently from OpenQM and is not described here, and anything in these pages that turns out not to be true of the build you are running. The second is as valuable as the first.
Quote the version as WC2.0-0 — the string in the header bar of every
page here, in the installer's file name, and in what sd --version reports.
The bare 2.0-0 is the same release; the WC says it is SD Core for Windows
(SD Core Solo for Windows is WS2.0-0), and that is the part worth keeping in
a report.