From dabf2aed5af80ae4d2b48cf4e630769a864fd99b Mon Sep 17 00:00:00 2001 From: Denis Feklushkin Date: Tue, 27 Feb 2018 13:35:13 +0700 Subject: [PATCH] __Conn -> connection --- source/app.d | 8 ++++---- source/sql_transaction.d | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/app.d b/source/app.d index 37f0fd2..ea39d72 100644 --- a/source/app.d +++ b/source/app.d @@ -91,7 +91,7 @@ int main(string[] args) }; // delegate - void afterConnectOrReconnect(__Conn conn) + void afterConnectOrReconnect(Connection conn) { if(prepArgs.methodsLoadedFlag) { @@ -134,7 +134,7 @@ int main(string[] args) // prepare statements for previously used connection afterConnectOrReconnect(conn); - delete conn; + destroy(conn); } if(!checkStatements) @@ -840,7 +840,7 @@ class LoopException : Exception } /// returns names of unprepared methods, but length is number of unprepared statements -private string[] prepareStatements(__Conn conn, ref PrepareStatementsArgs args) +private string[] prepareStatements(Connection conn, ref PrepareStatementsArgs args) { { logDebugV("try to prepare internal statements"); @@ -902,7 +902,7 @@ string preparedName(in Method method, in Statement statement) } } -private OidType[] retrieveArgsTypes(__Conn conn, string preparedStatementName) +private OidType[] retrieveArgsTypes(Connection conn, string preparedStatementName) { auto desc = conn.describePreparedStatement(preparedStatementName); diff --git a/source/sql_transaction.d b/source/sql_transaction.d index 82e941f..39d444e 100644 --- a/source/sql_transaction.d +++ b/source/sql_transaction.d @@ -12,7 +12,7 @@ struct TransactionQueryParams struct SQLTransaction { - private LockedConnection!__Conn conn; + private LockedConnection conn; private bool opened = false; @disable this(this){} @@ -49,7 +49,7 @@ struct SQLTransaction if(opened) execBuiltIn(BuiltInPrep.ROLLBACK); - delete conn; + destroy(conn); } immutable(Answer)[] execMethod(in Method method, TransactionQueryParams qp)