Re: Integration of Psycopg with XTA

From: Federico Di Gregorio <fog(at)dndg(dot)it>
To: psycopg(at)lists(dot)postgresql(dot)org
Subject: Re: Integration of Psycopg with XTA
Date: 2018-10-10 21:19:45
Message-ID: b0b9d7ac-d2fb-45eb-88b1-235841ef1be1@dndg.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On 10/10/2018 11:10 PM, Christian Ferrari wrote:
> By the way, PyMySQL/mysqlclient-python project
> <https://github.com/PyMySQL/mysqlclient-python> asked me to rename the
> method from "get_native_conn()" to "_get_native_conn()".
>
> I'm not a "naming addicted person", but from the developer point of
> view, using two different methods would be for sure not appreciated...
>
> xar1 = PostgresqlXaResource(rm1.get_native_connection(), "PostgreSQL",
> "dbname=testdb")
> xar2 = MysqlXaResource(rm2._get_native_connection(), "MySQL",
> "localhost,0,lixa,,lixa")
>
> If you don't mind, I kindly ask you to wait a couple of days: I hope to
> close the pull request
> https://github.com/PyMySQL/mysqlclient-python/pull/269 shortly...

I think that _if_ this should go cross-database a method without the
underscore is better. The underscore usually means private and that's
good as long as it is just that. An informal "standard" method name
should not have the "_" in it.

federico

--
Federico Di Gregorio federico(dot)digregorio(at)dndg(dot)it
DNDG srl http://dndg.it
Gli esseri umani, a volte, sono destinati, per il solo fatto di
esistere, a fare del male a qualcuno. -- Haruki Murakami

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Daniele Varrazzo 2018-10-11 18:46:33 Re: Integration of Psycopg with XTA
Previous Message Christian Ferrari 2018-10-10 21:10:55 Re: Integration of Psycopg with XTA