Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Francis Hwang
ObjectStore API changes [ reply ]  
2005-11-17 03:20
ObjectStore has too many methods, and some of them feel grossly Java-ish. So I would like to make the following changes:

Renaming:
ObjectStore#get_all to #all
ObjectStore#get_db_bridge to #db_bridge
ObjectStore#get_max to #max
ObjectStore#get_subset to #query
ObjectStore#query to #group_query
ObjectStore#get_client to #client [or other domain class]
ObjectStore#get_clients to #clients [or other domain class]

Removing:
ObjectStore#get_filtered
ObjectStore#get_objects
ObjectStore#set_db_name
DbConnection#set_db_name

Again, please let me know if any of these are objectionable.