QSqlIndex Class
QSqlIndex 클래스는 데이터베이스 인덱스를 조작하고 설명하는 함수를 제공합니다. 더 보기...
Header: | #include <QSqlIndex> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Sql) target_link_libraries(mytarget PRIVATE Qt6::Sql) |
qmake: | QT += sql |
상속합니다: | QSqlRecord |
- 상속된 멤버를 포함한 모든 멤버 목록
- QSqlIndex는 데이터베이스 클래스의 일부입니다.
속성
(since 6.8)
cursorName : QString(since 6.8)
name : QString
공공 기능
QSqlIndex(const QString &cursorname = QString(), const QString &name = QString()) | |
QSqlIndex(const QSqlIndex &other) | |
(since 6.6) | QSqlIndex(QSqlIndex &&other) |
~QSqlIndex() | |
void | append(const QSqlField &field) |
void | append(const QSqlField &field, bool desc) |
QString | cursorName() const |
bool | isDescending(int i) const |
QString | name() const |
void | setCursorName(const QString &cursorName) |
void | setDescending(int i, bool desc) |
void | setName(const QString &name) |
(since 6.6) QSqlIndex & | operator=(QSqlIndex &&other) |
QSqlIndex & | operator=(const QSqlIndex &other) |
속성 문서
[since 6.8]
cursorName : QString
이 프로퍼티는 인덱스가 연관된 커서의 이름을 저장합니다.
이 프로퍼티는 Qt 6.8에 도입되었습니다.
액세스 함수:
QString | cursorName() const |
void | setCursorName(const QString &cursorName) |
[since 6.8]
name : QString
이 프로퍼티는 인덱스의 이름을 저장합니다.
이 프로퍼티는 Qt 6.8에 도입되었습니다.
액세스 함수:
멤버 함수 문서
[explicit]
QSqlIndex::QSqlIndex(const QString &cursorname = QString(), const QString &name = QString())
커서 이름 cursorname 과 인덱스 이름 name 을 사용하여 빈 인덱스를 생성합니다.
QSqlIndex::QSqlIndex(const QSqlIndex &other)
other 의 복사본을 생성합니다.
[noexcept, since 6.6]
QSqlIndex::QSqlIndex(QSqlIndex &&other)
Move - other 에서 새 QSqlIndex를 만듭니다.
참고: 이동한 개체 other 는 부분적으로 형성된 상태로 배치되며, 유효한 작업은 파괴와 새 값 할당뿐입니다.
이 함수는 Qt 6.6에 도입되었습니다.
[noexcept]
QSqlIndex::~QSqlIndex()
개체를 파괴하고 할당된 모든 리소스를 해제합니다.
void QSqlIndex::append(const QSqlField &field)
색인된 필드 목록에 field 필드를 추가합니다. 필드는 오름차순 정렬 순서로 추가됩니다.
void QSqlIndex::append(const QSqlField &field, bool desc)
이 함수는 오버로드된 함수입니다.
색인된 필드 목록에 field 필드를 추가합니다. desc 이 참인 경우를 제외하고 필드는 오름차순 정렬 순서로 추가됩니다.
QString QSqlIndex::cursorName() const
커서 이름을 반환합니다.
참고: cursorName 프로퍼티에 대한 게터 함수입니다.
setCursorName()도 참조하세요 .
bool QSqlIndex::isDescending(int i) const
인덱스의 필드 i 가 내림차순으로 정렬된 경우 true
를 반환하고, 그렇지 않으면 false
를 반환합니다.
QString QSqlIndex::name() const
이름을 반환합니다.
참고: 속성 이름에 대한 게터 함수입니다.
setName()도 참조하세요 .
void QSqlIndex::setCursorName(const QString &cursorName)
cursorName 을 cursorName 으로 설정합니다.
참고: 속성에 대한 세터 함수 cursorName.
cursorName()도 참조하세요 .
void QSqlIndex::setDescending(int i, bool desc)
desc 이 참이면 i 필드가 내림차순으로 정렬됩니다. 그렇지 않으면 i 필드가 오름차순으로 정렬됩니다(기본값). 필드가 존재하지 않으면 아무 일도 일어나지 않습니다.
isDescending()도 참조하세요 .
void QSqlIndex::setName(const QString &name)
name 을 name 으로 설정합니다.
참고: 속성에 대한 세터 함수 name.
name()도 참조하세요 .
[noexcept, since 6.6]
QSqlIndex &QSqlIndex::operator=(QSqlIndex &&other)
이동 - other 을 이 QSqlIndex 인스턴스에 할당합니다.
참고: 이동된 객체 other 는 부분적으로 형성된 상태로 배치되며, 유효한 작업은 소멸과 새 값 할당뿐입니다.
이 함수는 Qt 6.6에 도입되었습니다.
QSqlIndex &QSqlIndex::operator=(const QSqlIndex &other)
인덱스를 other 로 설정합니다.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.