DatabaseEvents.h 934 B

12345678910111213141516171819202122232425
  1. // Copyright (c) 2008-2023 the Urho3D project
  2. // License: MIT
  3. #pragma once
  4. #include "../Core/Object.h"
  5. #include "../Database/DbConnection.h"
  6. namespace Urho3D
  7. {
  8. /// %Database cursor. Event handler could set P_FILTER to true to filter out a row from resultset and P_ABORT to true to stop further cursor events.
  9. URHO3D_EVENT(E_DBCURSOR, DbCursor)
  10. {
  11. URHO3D_PARAM(P_DBCONNECTION, DbConnection); // DbConnection pointer
  12. URHO3D_PARAM(P_RESULTIMPL, ResultImpl); // Underlying result object pointer (cannot be used in scripting)
  13. URHO3D_PARAM(P_SQL, SQL); // String
  14. URHO3D_PARAM(P_NUMCOLS, NumCols); // unsigned
  15. URHO3D_PARAM(P_COLVALUES, ColValues); // VariantVector
  16. URHO3D_PARAM(P_COLHEADERS, ColHeaders); // StringVector
  17. URHO3D_PARAM(P_FILTER, Filter); // bool [in]
  18. URHO3D_PARAM(P_ABORT, Abort); // bool [in]
  19. }
  20. }