Re: [pgadmin-hackers] Added variable macro for generic db objects

2016-02-03 Thread Ashesh Vashi
On Wed, Feb 3, 2016 at 3:37 PM, Murtuza Zabuawala < [email protected]> wrote: > Hi Ashesh, > > PFA updated patch for generic variable macro as per Neel's suggestion, now > it will take collection instead of single key/value pair. > > For example, > > options_collection = [ > {*nam

Re: [pgadmin-hackers] Added variable macro for generic db objects

2016-02-03 Thread Murtuza Zabuawala
Hi Ashesh, PFA updated patch for generic variable macro as per Neel's suggestion, now it will take collection instead of single key/value pair. For example, options_collection = [ {*name*: 'Option-1', *value*: 'Value-1'}, {*name*: 'Option-2', *value*: 'Value-2'}, {*name*: 'Option-3', *value*: 'V

Re: [pgadmin-hackers] Added variable macro for generic db objects

2016-02-02 Thread Ashesh Vashi
Thanks - checked in! -- Thanks & Regards, Ashesh Vashi EnterpriseDB INDIA: Enterprise PostgreSQL Company *http://www.linkedin.com/in/asheshvashi* On Tue, Feb 2, 2016 at 6:31 PM, Murtuza Zabuawala < murtuza.zabuaw...@enterp

Re: [pgadmin-hackers] Added variable macro for generic db objects

2016-02-02 Thread Murtuza Zabuawala
Hi, PFA updated patch, I missed adding parentheses in previous patch for UNSET macro . Thanks. -- Regards, Murtuza Zabuawala EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company On Tue, Feb 2, 2016 at 5:49 PM, Murtuza Zabuawala < [email protected]> wrote:

[pgadmin-hackers] Added variable macro for generic db objects

2016-02-02 Thread Murtuza Zabuawala
Hi, PFA patch to add another generic macro for variable control, previously written macro was specific to database node and not usable with other db objects. *How to use:* VARIABLE.SET(conn, object_type, object_name, variable_name, value) VARIABLE.UNSET(conn, object_type, object_name, variable_na