thanks!Am I right understand that in next code scope(exit) stmt.close(); occur after this execution? And it will close connection so stmt in function become unavailable.
this(parseConfig parseconfig) { [....] auto conn = ds.getConnection(); scope(exit) conn.close(); stmt = conn.createStatement(); scope(exit) stmt.close(); //HERE } void InsertData() { auto rs = stmt.executeUpdate(sqlinsert); // stmt now unreachable }