Re: [Firebird-devel] Errors from IPluginFactory::createPlugin()

2014-07-03 Thread Alex Peshkoff
On 07/03/14 17:48, Dimitry Sibiryakov wrote: > 03.07.2014 12:04, Alex Peshkoff wrote: >> On 07/03/14 13:59, Dimitry Sibiryakov wrote: >>> If a plugin has failed to create because of misconfiguration or for >>> any other reason, >>> how can IPluginFactory::createPlugin() method return the err

[Firebird-devel] [FB-Tracker] Created: (CORE-4482) Per-database plugin configuration

2014-07-03 Thread Dimitry Sibiryakov (JIRA)
Per-database plugin configuration - Key: CORE-4482 URL: http://tracker.firebirdsql.org/browse/CORE-4482 Project: Firebird Core Issue Type: Improvement Components: Engine Affects Versions: 3.0 Alp

Re: [Firebird-devel] Errors from IPluginFactory::createPlugin()

2014-07-03 Thread Dimitry Sibiryakov
03.07.2014 12:04, Alex Peshkoff wrote: > On 07/03/14 13:59, Dimitry Sibiryakov wrote: >> If a plugin has failed to create because of misconfiguration or for any >> other reason, >> how can IPluginFactory::createPlugin() method return the error code/text? > > Update your tree please. > Fix was

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Dimitry Sibiryakov
03.07.2014 14:09, Alex Peshkoff wrote: > Parameter of plugin is something different from the list of plugins of > given type, used by GetPlugins. From your syntax I decided that you suggest to combine them. -- WBR, SD. --

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Alex Peshkoff
On 07/03/14 16:04, Dimitry Sibiryakov wrote: > 03.07.2014 13:58, Alex Peshkoff wrote: >> On 07/03/14 15:36, Dimitry Sibiryakov wrote: 03.07.2014 13:25, Alex Peshkoff wrote: >> This syntax fits much better into current config files. Can GetPlugins() handle it? >> How is it re

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Dimitry Sibiryakov
03.07.2014 13:58, Alex Peshkoff wrote: > On 07/03/14 15:36, Dimitry Sibiryakov wrote: >> >03.07.2014 13:25, Alex Peshkoff wrote: >>> >>This syntax fits much better into current config files. >> > Can GetPlugins() handle it? >> > > How is it related with GetPlugins? GetPlugins() will have to

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Alex Peshkoff
On 07/03/14 15:36, Dimitry Sibiryakov wrote: > 03.07.2014 13:25, Alex Peshkoff wrote: >> This syntax fits much better into current config files. > Can GetPlugins() handle it? > How is it related with GetPlugins? -- O

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Dimitry Sibiryakov
03.07.2014 13:25, Alex Peshkoff wrote: > This syntax fits much better into current config files. Can GetPlugins() handle it? -- WBR, SD. -- Open source business process management suite built on Java and Eclipse T

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Alex Peshkoff
On 07/03/14 14:33, Dimitry Sibiryakov wrote: > 03.07.2014 11:27, Alex Peshkoff wrote: >> Mixing plugin-specific parameters with firebird parameters in same heap >> is bad idea. Mixing 2 sets of parameters of 2 plugins in same heap is >> even more bad - each plugin would like to have parameter 'Foo'

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Dimitry Sibiryakov
03.07.2014 11:27, Alex Peshkoff wrote: > Mixing plugin-specific parameters with firebird parameters in same heap > is bad idea. Mixing 2 sets of parameters of 2 plugins in same heap is > even more bad - each plugin would like to have parameter 'Foo' for > different purporses. Can we suggest a forma

Re: [Firebird-devel] Errors from IPluginFactory::createPlugin()

2014-07-03 Thread Alex Peshkoff
On 07/03/14 13:59, Dimitry Sibiryakov wrote: > Hello, All. > > If a plugin has failed to create because of misconfiguration or for any > other reason, > how can IPluginFactory::createPlugin() method return the error code/text? > Update your tree please. Fix was committed yesterday for a l

[Firebird-devel] Errors from IPluginFactory::createPlugin()

2014-07-03 Thread Dimitry Sibiryakov
Hello, All. If a plugin has failed to create because of misconfiguration or for any other reason, how can IPluginFactory::createPlugin() method return the error code/text? -- WBR, SD. -- Open source business

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Alex Peshkoff
On 07/03/14 13:26, Dmitry Yemanov wrote: > 03.07.2014 13:18, Dimitry Sibiryakov wrote: > >>> No. Do you have a suggestion? >> IMHO, databases.conf is an obvious (from end-user POV) and the best place. > Or just pass the database name into plugin and allow it to store/parse > its own config (databas

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Alex Peshkoff
On 07/03/14 13:18, Dimitry Sibiryakov wrote: > 03.07.2014 11:14, Alex Peshkoff wrote: >>> Ok. Is there a place where user can put database-wide parameters and where a plugin can get it from exactly for the database it was loaded for? >> No. Do you have a suggestion? > IMHO, datab

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Dmitry Yemanov
03.07.2014 13:18, Dimitry Sibiryakov wrote: >> No. Do you have a suggestion? > > IMHO, databases.conf is an obvious (from end-user POV) and the best place. Or just pass the database name into plugin and allow it to store/parse its own config (database-wide or global) in whatever way the develope

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Dimitry Sibiryakov
03.07.2014 11:14, Alex Peshkoff wrote: >> Ok. Is there a place where user can put database-wide parameters >> >and where a plugin can >> >get it from exactly for the database it was loaded for? > No. Do you have a suggestion? IMHO, databases.conf is an obvious (from end-user POV) and the be

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Alex Peshkoff
On 07/03/14 13:04, Dmitry Yemanov wrote: > 03.07.2014 12:45, Alex Peshkoff wrote: > >> In databases.conf one can use only present in firebird.conf fixed set of >> parameters. >> See config.cpp for details. >> I suppose we have no problems adding replication parameters in it. > I don't think *plugin

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Dimitry Sibiryakov
03.07.2014 11:04, Dmitry Yemanov wrote: > I don't think*plugin-specific* settings belong to our config. Ok. Is there a place where user can put database-wide parameters and where a plugin can get it from exactly for the database it was loaded for? -- WBR, SD. --

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Dmitry Yemanov
03.07.2014 12:45, Alex Peshkoff wrote: > In databases.conf one can use only present in firebird.conf fixed set of > parameters. > See config.cpp for details. > I suppose we have no problems adding replication parameters in it. I don't think *plugin-specific* settings belong to our config. Dmitr

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Dimitry Sibiryakov
03.07.2014 10:45, Alex Peshkoff wrote: > In databases.conf one can use only present in firebird.conf fixed set of > parameters. > See config.cpp for details. I saw it and really hoped that IConfig or IConfigEntry may help in this case. > I suppose we have no problems adding replication paramet

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Alex Peshkoff
On 07/03/14 12:34, Dimitry Sibiryakov wrote: > 03.07.2014 10:23, Alex Peshkoff wrote: >>> Which interface a plugin can use to get "Bar" for "Foo" when it is >>> loaded for this database? >> IFirebirdConf. > I tried, but getKey("Foo") returns -1. > What did I wrong? > In databas

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Dimitry Sibiryakov
03.07.2014 10:23, Alex Peshkoff wrote: >> Which interface a plugin can use to get "Bar" for "Foo" when it is >> loaded for this >> >database? > IFirebirdConf. I tried, but getKey("Foo") returns -1. What did I wrong? -- WBR, SD.

Re: [Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Alex Peshkoff
On 07/03/14 12:00, Dimitry Sibiryakov wrote: > Hello, All. > > Is subj possible? > If I write in database.conf something like this: > > MyDB=MyDB > { > Foo=Bar > } > > Which interface a plugin can use to get "Bar" for "Foo" when it is loaded > for this > database? IFirebirdC

[Firebird-devel] [FB-Tracker] Created: (CORE-4481) Local database mode parameters are ignored

2014-07-03 Thread Dimitry Sibiryakov (JIRA)
Local database mode parameters are ignored -- Key: CORE-4481 URL: http://tracker.firebirdsql.org/browse/CORE-4481 Project: Firebird Core Issue Type: Bug Components: Engine Affects Version

[Firebird-devel] Plugin-specific database-wide configuration parameters

2014-07-03 Thread Dimitry Sibiryakov
Hello, All. Is subj possible? If I write in database.conf something like this: MyDB=MyDB { Foo=Bar } Which interface a plugin can use to get "Bar" for "Foo" when it is loaded for this database? -- WBR, SD. ---