[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mckoi 2.0 work in progress download



Hi John,

The Database class does not exist in the new version.  The equivalent 
class in version 2 is com.mckoi.database.TSDatabaseSession.  For an 
example of how to create a store and wrap a TSDatabaseSession around it, 
take a look at the com.mckoi.tests.Main.

In version 2.0, all database components are backed by a 
KeyObjectDatabase which models the data stored, even the relational SQL 
part.

The design of the Operation packages for query planning was to aid in 
writing a more flexible query planner.  All functional query operations 
can now be written using an operation graph.  This allowed me to 
simplify a lot of code around the handling of primitive SQL expression, 
operation and function classes.  The interpret package may return if 
people want to write their own custom SQL queries.

In Mckoi 2.0, interpreting SQL statement is handled by the class 
com.mckoi.database.SQLStatementInterpreter.

Toby.

John Garrett Smith wrote:
> Toby,
> 
> I've reviewed the work you've done for the new version of McKoi and I
> found some things I like (like the new treestore, although I haven't
> got how it is attached to the rest of the system) and some things I
> like less (like the replacement of the interpret package with
> Operation classes)...
> 
> One thing I didn't find at all was the class Database.java :D
> Hope you will include in the next version...
> 
> Anyway, thank you again for the effort!
> John