General Query Framework, a proposal
Dave Peticolas
dave@krondo.com
29 Jan 2002 15:16:39 -0800
--=-wQlZxou5p+jLwxF1hJnY
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
On Tue, 2002-01-29 at 08:15, Derek Atkins wrote:
> Dave Peticolas <dave@krondo.com> writes:
>=20
> > Thanks, this looks like a great start.
>=20
> Thanks.
>=20
> [snip]
> > I realize that isn't list isn't comprehensive, but we
> > should support all the basic kvp types, including int64
> > and double. Also, boolean would be good, too.
>=20
> True, but this list is "comprehensive" in that it covers everything
> that the current Query can cover. But yea, we should be able to
> cover all the KVP types.
Oh, well in that case you're just wrong :) You missed the 'kvp'
query api, unless you were looking at the stable sources.
> [snip]
> > Or just add a 'character' type, maybe.
>=20
> That would work, too, and the predicate data can be a "list" of
> "wanted" characters.
>=20
> > > The attached files are the current (incomplete) header files. Please
> > > let me know what you think so far.
> >=20
> > From my reading of the API, it looks like each object
> > data member (account name, account code, etc), is registered
> > individually. Is that right? What about dynamic kvp data?
>=20
> Yes, you read it right. Keep in mind that each 'type' defines it's
> own predicate-data object....
>=20
> I need to think about the kvp data. My first off-the-cuff idea would
> be to define a 'kvp' type, register the kvp-getter, and in the
> predicate-data define the slot/frame name, type, and data. Or perhaps
> have it recurse a bit? Like I said, I have to think about how to
> handle kvp data. Do you have any ideas?
Well, first take a look at the existing api.
dave
--=-wQlZxou5p+jLwxF1hJnY
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQA8Vy1W5effKKCmfpIRAqkPAKDdAX1Kprhj/j8YJs8z/ALx9Oi2ygCg4Vcg
f00ZZfXPH3IXhyTudTON+RI=
=qGH3
-----END PGP SIGNATURE-----
--=-wQlZxou5p+jLwxF1hJnY--