Skip to content

Commit

Permalink
__Conn -> connection
Browse files Browse the repository at this point in the history
  • Loading branch information
denizzzka committed Feb 27, 2018
1 parent 055c8ef commit dabf2ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ int main(string[] args)
};

// delegate
void afterConnectOrReconnect(__Conn conn)
void afterConnectOrReconnect(Connection conn)
{
if(prepArgs.methodsLoadedFlag)
{
Expand Down Expand Up @@ -134,7 +134,7 @@ int main(string[] args)
// prepare statements for previously used connection
afterConnectOrReconnect(conn);

delete conn;
destroy(conn);
}

if(!checkStatements)
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions source/sql_transaction.d
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct TransactionQueryParams

struct SQLTransaction
{
private LockedConnection!__Conn conn;
private LockedConnection conn;
private bool opened = false;

@disable this(this){}
Expand Down Expand Up @@ -49,7 +49,7 @@ struct SQLTransaction
if(opened)
execBuiltIn(BuiltInPrep.ROLLBACK);

delete conn;
destroy(conn);
}

immutable(Answer)[] execMethod(in Method method, TransactionQueryParams qp)
Expand Down

0 comments on commit dabf2ae

Please sign in to comment.