List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:April 24 2007 6:41pm
Subject:Re: Language-specific wrappers/extensions
View as plain text  
Mika Raento wrote:

> 
> It was simpler than I thought. Since you should never create your own
> NdbTransactions with new, there's no reason to expose the real
> desctructor either. So it suffices to add
> 
> %newobject startTransaction;
> 
> to Ndb.i and
> 
> %extend NdbTransaction {
> public:
>     ~NdbTransaction() {
>         self->close();
>     }
> };
> 
> to NdbTransaction.i (while removing the original ~NdbTransaction from it).
> 

sweet! I'll pop that in and play with it in just a few seconds.

-- 
Monty Taylor
Senior Consultant
MySQL Inc., www.mysql.com
Get More with MySQL!  www.mysql.com/consulting
Thread
Language-specific wrappers/extensionsMika Raento23 Apr
  • Re: Language-specific wrappers/extensionsMonty Taylor23 Apr
    • Re: Language-specific wrappers/extensionsMonty Taylor24 Apr
      • Re: Language-specific wrappers/extensionsMika Raento24 Apr
        • Re: Language-specific wrappers/extensionsMonty Taylor24 Apr
Re: Language-specific wrappers/extensionsMonty Taylor24 Apr
  • %/% rule in Makefile?Mika Raento25 Apr
    • Re: %/% rule in Makefile?Monty Taylor25 Apr
      • Re: %/% rule in Makefile?Mika Raento26 Apr
        • DocumentationMonty Taylor27 Apr
      • lifetime of Ndb and Ndb_cluster_connection objectsMika Raento26 Apr
        • Re: lifetime of Ndb and Ndb_cluster_connection objectsMonty Taylor27 Apr
          • Re: lifetime of Ndb and Ndb_cluster_connection objectsMika Raento7 May
            • Re: lifetime of Ndb and Ndb_cluster_connection objectsMonty Taylor7 May
      • Support for NdbIndex(Scan)Operation, prelim. support for typed attributeaccessMika Raento26 Apr
        • Re: Support for NdbIndex(Scan)Operation, prelim. support for typedattribute accessMonty Taylor28 Apr
Re: lifetime of Ndb and Ndb_cluster_connection objectsMonty Taylor8 May