본문으로 건너뛰기
로딩중...
검색중...
일치하는것 없음
glsConnectionMutationService.h
1#pragma once
2#include "gdk_dll/glsTypes.h"
3namespace GDK {
4class glsDataset;
7enum class glsConnectionMutationOutcome : int32_t {
12};
13
17class GDK_DLL_API glsConnectionMutationResult final {
18public:
29 glsStatus GetWarning(char *buffer, size_t size,
30 size_t *required) const noexcept;
32 void Release() noexcept;
33
34private:
35 struct Impl;
36 Impl *impl_;
37 explicit glsConnectionMutationResult(Impl *) noexcept;
38 ~glsConnectionMutationResult();
39 glsConnectionMutationResult(const glsConnectionMutationResult&) = delete;
40 glsConnectionMutationResult& operator=(const glsConnectionMutationResult&) = delete;
41 friend class glsConnectionMutationService;
42};
43// Immutable pre-confirmation snapshot. Retains no dataset/transaction handle.
48class GDK_DLL_API glsConnectionMutationPlan final {
49public:
51 void Release() noexcept;
52
53private:
54 struct Impl;
55 Impl *impl_;
56 explicit glsConnectionMutationPlan(Impl *) noexcept;
57 ~glsConnectionMutationPlan();
58 glsConnectionMutationPlan(const glsConnectionMutationPlan &) = delete;
59 glsConnectionMutationPlan &
60 operator=(const glsConnectionMutationPlan &) = delete;
61 friend class glsConnectionMutationService;
62};
63// Call on the dataset owner thread, serialized with readers/edits.
73public:
76
86 static glsStatus Prepare(glsDataset *dataset, const char *provider,
87 const char *schema, const char *name,
88 glsConnectionMutationPlan **plan) noexcept;
97 static glsStatus
99 const char *newName,
100 glsConnectionMutationResult **result) noexcept;
108 static glsStatus
110 glsConnectionMutationResult **result) noexcept;
112
115
126 static glsStatus ValidateRename(const char *provider, const char *oldName,
127 const char *input, char *normalized,
128 size_t size, size_t *required) noexcept;
134 static glsStatus ValidateCreate(const char *requestJson) noexcept;
136
139
147 static glsStatus CreateTable(glsDataset *dataset, const char *requestJson,
148 glsConnectionMutationResult **result) noexcept;
158 static glsStatus Rename(glsDataset *dataset, const char *provider,
159 const char *oldName, const char *newName,
160 glsConnectionMutationResult **result) noexcept;
168 static glsStatus Delete(glsDataset *dataset, const char *name,
169 glsConnectionMutationResult **result) noexcept;
171
172
173private:
174 static glsStatus Verify(glsDataset *,
175 const glsConnectionMutationPlan *) noexcept;
176 static glsStatus RenameChecked(glsDataset *,
178 const char *, const char *, const char *,
179 glsConnectionMutationResult **) noexcept;
180 static glsStatus DeleteChecked(glsDataset *,
182 const char *,
183 glsConnectionMutationResult **) noexcept;
184};
185} // namespace GDK
테이블 변경 확인 전에 캡처한 스냅샷입니다.
정의 glsConnectionMutationService.h:48
void Release() noexcept
계획을 해제합니다. 이후 객체를 사용하면 안 됩니다.
테이블 생성, 이름 변경 또는 삭제의 독립 결과입니다.
정의 glsConnectionMutationService.h:17
glsConnectionMutationOutcome GetOutcome() const noexcept
데이터베이스에서 확정된 변경 상태를 조회합니다.
void Release() noexcept
변경 결과를 해제합니다.
glsStatus GetWarning(char *buffer, size_t size, size_t *required) const noexcept
호출이 남긴 영문 경고를 UTF-8로 조회합니다.
GeoPackage, SpatiaLite 또는 PostgreSQL 테이블을 생성하거나 이름 변경하거나 삭제합니다.
정의 glsConnectionMutationService.h:72
static glsStatus Rename(glsDataset *dataset, const char *provider, const char *oldName, const char *newName, glsConnectionMutationResult **result) noexcept
스냅샷 비교 없이 테이블 이름을 변경합니다.
static glsStatus Prepare(glsDataset *dataset, const char *provider, const char *schema, const char *name, glsConnectionMutationPlan **plan) noexcept
이름 변경이나 삭제하기 전에 테이블 스냅샷을 캡처합니다.
static glsStatus ValidateRename(const char *provider, const char *oldName, const char *input, char *normalized, size_t size, size_t *required) noexcept
새 테이블 이름을 데이터베이스를 열지 않고 검사합니다.
static glsStatus DeletePrepared(glsDataset *dataset, const glsConnectionMutationPlan *plan, glsConnectionMutationResult **result) noexcept
계획과 현재 대상이 일치하는지 확인한 뒤 테이블을 삭제합니다.
static glsStatus RenamePrepared(glsDataset *dataset, const glsConnectionMutationPlan *plan, const char *newName, glsConnectionMutationResult **result) noexcept
계획과 현재 대상이 일치하는지 검사한 뒤 테이블 이름을 변경합니다.
static glsStatus CreateTable(glsDataset *dataset, const char *requestJson, glsConnectionMutationResult **result) noexcept
요청한 정의로 테이블을 생성합니다.
static glsStatus Delete(glsDataset *dataset, const char *name, glsConnectionMutationResult **result) noexcept
스냅샷 비교 없이 테이블을 삭제합니다.
static glsStatus ValidateCreate(const char *requestJson) noexcept
데이터베이스를 변경하지 않고 테이블 생성 요청을 검사합니다.
파일, URI 또는 메모리 공급자에서 열 수 있는 논리적 GIS 데이터셋입니다.
정의 glsDataset.h:581
공개 gdk_dll API가 공유하는 값 형식, 결과 코드, 호출 규약입니다.
#define GDK_DLL_API
Windows에서는 SDK 심볼을 내보내거나 가져오고, 그 외 플랫폼에서는 SDK 빌드의 심볼을 공개합니다.
정의 glsExport.h:20
glsConnectionMutationOutcome
테이블 변경 후 데이터베이스에 남은 상태입니다.
정의 glsConnectionMutationService.h:7
@ RolledBack
삭제 트랜잭션을 시작했고 롤백 성공 응답을 받았습니다.
정의 glsConnectionMutationService.h:9
@ NotStarted
데이터베이스가 변경되지 않았습니다.
정의 glsConnectionMutationService.h:8
@ Committed
변경이 데이터베이스에 반영됐으며 SDK에서 실행 취소할 수 없습니다.
정의 glsConnectionMutationService.h:10
@ Unknown
미확정 식별자가 있거나 PostgreSQL 서버 표기가 달라 같거나 다른지 판단할 수 없습니다.
정의 glsConnectionIdentityService.h:8
glsGdk SDK의 네이티브 C++ API 이름 공간입니다.
정의 glsAttributeTable.h:5
DLL 경계의 공개 함수가 반환하는 상태입니다.
정의 glsTypes.h:83