Opened 9 years ago

Closed 5 years ago

Last modified 5 years ago

#1251 closed defect (worksforme)

API should use more defaults

Reported by: Peter Baumann Owned by: Dimitar Misev
Priority: minor Milestone: Future
Component: rasodmg Version: development
Keywords: Cc:
Complexity: Easy

Description (last modified by Peter Baumann)

currently, setting host, port, database is mandatory in the C++ and Java API. This should provide the well-known defaults to simplify application programming. This should be all needed for localhost:

database.open();

…and we even could make this fully automatic allowing to avoid database open (and, similarly, for transactions where we transparently could allocate one by default).

Change History (3)

comment:1 by Peter Baumann, 9 years ago

Description: modified (diff)

comment:2 by Dimitar Misev, 5 years ago

Resolution: worksforme
Status: newclosed

There's also user credentials that need to be set before the open().

I'd close this ticket as wontfix, using the C++ and Java API is so rare that these type of improvements are not really worth doing. It will not help in a client like rasql, because it anyway needs to work with the default values.

comment:3 by Peter Baumann, 5 years ago

ok

Note: See TracTickets for help on using tickets.