qsqlrecord.sip 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. // qsqlrecord.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtSql Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. class QSqlRecord
  22. {
  23. %TypeHeaderCode
  24. #include <qsqlrecord.h>
  25. %End
  26. public:
  27. QSqlRecord();
  28. QSqlRecord(const QSqlRecord &other);
  29. ~QSqlRecord();
  30. bool operator==(const QSqlRecord &other) const;
  31. bool operator!=(const QSqlRecord &other) const;
  32. QVariant value(int i) const;
  33. %If (Qt_6_8_0 -)
  34. QVariant value(QAnyStringView name) const;
  35. %End
  36. %If (- Qt_6_8_0)
  37. QVariant value(const QString &name) const;
  38. %End
  39. void setValue(int i, const QVariant &val);
  40. %If (Qt_6_8_0 -)
  41. void setValue(QAnyStringView name, const QVariant &val);
  42. %End
  43. %If (- Qt_6_8_0)
  44. void setValue(const QString &name, const QVariant &val);
  45. %End
  46. void setNull(int i);
  47. %If (Qt_6_8_0 -)
  48. void setNull(QAnyStringView name);
  49. %End
  50. %If (- Qt_6_8_0)
  51. void setNull(const QString &name);
  52. %End
  53. bool isNull(int i) const;
  54. %If (Qt_6_8_0 -)
  55. bool isNull(QAnyStringView name) const;
  56. %End
  57. %If (- Qt_6_8_0)
  58. bool isNull(const QString &name) const;
  59. %End
  60. %If (Qt_6_8_0 -)
  61. int indexOf(QAnyStringView name) const;
  62. %End
  63. %If (- Qt_6_8_0)
  64. int indexOf(const QString &name) const;
  65. %End
  66. QString fieldName(int i) const;
  67. QSqlField field(int i) const;
  68. %If (Qt_6_8_0 -)
  69. QSqlField field(QAnyStringView name) const;
  70. %End
  71. %If (- Qt_6_8_0)
  72. QSqlField field(const QString &name) const;
  73. %End
  74. bool isGenerated(int i) const;
  75. %If (Qt_6_8_0 -)
  76. bool isGenerated(QAnyStringView name) const;
  77. %End
  78. %If (- Qt_6_8_0)
  79. bool isGenerated(const QString &name) const;
  80. %End
  81. %If (Qt_6_8_0 -)
  82. void setGenerated(QAnyStringView name, bool generated);
  83. %End
  84. %If (- Qt_6_8_0)
  85. void setGenerated(const QString &name, bool generated);
  86. %End
  87. void setGenerated(int i, bool generated);
  88. void append(const QSqlField &field);
  89. void replace(int pos, const QSqlField &field);
  90. void insert(int pos, const QSqlField &field);
  91. void remove(int pos);
  92. bool isEmpty() const;
  93. %If (Qt_6_8_0 -)
  94. bool contains(QAnyStringView name) const;
  95. %End
  96. %If (- Qt_6_8_0)
  97. bool contains(const QString &name) const;
  98. %End
  99. void clear();
  100. void clearValues();
  101. int count() const /__len__/;
  102. QSqlRecord keyValues(const QSqlRecord &keyFields) const;
  103. %If (Qt_6_6_0 -)
  104. void swap(QSqlRecord &other /Constrained/);
  105. %End
  106. };