Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Gdbm module



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.



Messages sorted by: Reverse Date, Date, Thread, Author