Connection strings, and representing them as lists
Lassi Kortela 23 Sep 2019 10:57 UTC
> <https://www.connectionstrings.com/> makes it clear that
> connection strings are de facto standardized
Wow, that site is amazingly thorough. I had no idea the strings are that
uniform. That's good news for us.
> and that they are a flattening
> of a string-to-string alist, which is how we should represent them in
> Scheme. Not a p-list, because the keys frequently have spaces, and "..."
> is easier and more portable than |...|. So I have made an alist the only
> argument of open-sql-connection.
Given that alists and plists, as well as symbols and strings, are
perfectly round-trippable, I don't have much of an opinion on which
flavor to choose.
Alist with string keys is fine. I'll change the nascent IPC protocol's
`connect` command to take a single alist argument as well.