From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Gdbm module
Date: Wed, 22 Feb 2017 07:44:15 -0800 [thread overview]
Message-ID: <170222074415.ZM18336@torch.brasslantern.com> (raw)
In-Reply-To: <1487754648.2910142.888918792.4BD9197F@webmail.messagingengine.com>
On Feb 22, 1:10am, Sebastian Gniazdowski wrote:
}
} On Tue, Feb 21, 2017, at 08:41 PM, Bart Schaefer wrote:
} > ztie -d db/sqlite -Q "SELECT ..." ... queryresult
} >
} > and define queryresult in a manner similar to the way Perl DBI does
} > with fetchall_hashref.
}
} Interesting, it assumes single row to be selected in Zsh conditions, as
} far I understand.
Either that, or the keys would be the unique key for each row and the
values would be either a single column, or encoded somehow so that
they could be split into fields. We are somewhat limited by lacking
a mechanism for nested hashrefs, but consider the way "typeset -T" can
specify the format of array <-> scalar joining.
next prev parent reply other threads:[~2017-02-22 15:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAKc7PVAz=zfrFapifcJudnMqgscNudC5S4S6ym7AWfFFORoROQ@mail.gmail.com>
2017-02-21 17:25 ` Bart Schaefer
2017-02-21 19:52 ` Sebastian Gniazdowski
2017-02-22 4:41 ` Bart Schaefer
2017-02-22 9:10 ` Sebastian Gniazdowski
2017-02-22 15:44 ` Bart Schaefer [this message]
2017-02-23 8:19 ` Sebastian Gniazdowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=170222074415.ZM18336@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).