Generalized Query?

Dave Peticolas dave@krondo.com
17 Dec 2001 16:54:08 -0800


--=-1lceW3tbI+swRLAcclSn
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon, 2001-12-17 at 16:36, Derek Atkins wrote:
> Dave Peticolas <dave@krondo.com> writes:
>=20
> > > I'm wondering if we really want a unified query, or if what we
> > > really want is a query framework so that each type of object
> > > can define its' own query terms and predicates?
> >=20
> > What would be the difference?
>=20
> Well, does Query.h/Query.c need to know about every object (e.g.
> Transaction, GncCustomer, Split, GncEntry, etc) or is it a
> framework so that each new object can "plug in" its own query
> terms?

Oh, right. It seems it would have to be a framework, otherwise
it sort of defeats the purpose of the engine extension framework.


> > > I haven't put many neurons into this problem, yet -- I was
> > > wondering if anyone else has?
> >=20
> > I haven't really thought about it either, but it seems to me
> > that you would want to be able to combine terms from different
> > kinds of objects.
>=20
> True, but where do you find the query terms for the different
> kinds of objects?
>=20
> My issue is that currently the code in src/engine knows nothing
> about the business objects.  I'd like to keep it that way.
> Unforutnately the Query is the current sticking point.

Sure and I agree.

dave


--=-1lceW3tbI+swRLAcclSn
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA8HpOw5effKKCmfpIRAq5LAJ9k+PiJPBVy1shpWpxWG6Jull5R6QCgmNTQ
QaaWTCx3aWu/1LLh8VhW+Vs=
=+Ti+
-----END PGP SIGNATURE-----

--=-1lceW3tbI+swRLAcclSn--