Skip to content

Commit 7bd3cb7

Browse files
all: fixed integration tests for ydb (#11)
1 parent b1af6b1 commit 7bd3cb7

File tree

21 files changed

+1202
-369
lines changed

21 files changed

+1202
-369
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,20 @@ jobs:
274274
--health-interval 10s
275275
--health-timeout 5s
276276
--health-retries 5
277+
ydb:
278+
image: ydbplatform/local-ydb:trunk
279+
env:
280+
GRPC_TLS_PORT: 2135
281+
GRPC_PORT: 2136
282+
MON_PORT: 8765
283+
ports:
284+
- 2136:2136
285+
- 8765:8765
286+
options: >-
287+
--hostname localhost
288+
--platform linux/amd64
289+
--health-cmd "true"
290+
--health-start-period 30s
277291
steps:
278292
- uses: actions/checkout@v4
279293
- uses: actions/setup-go@v5
@@ -476,6 +490,20 @@ jobs:
476490
--health-interval 10s
477491
--health-timeout 5s
478492
--health-retries 5
493+
ydb:
494+
image: ydbplatform/local-ydb:trunk
495+
env:
496+
GRPC_TLS_PORT: 2135
497+
GRPC_PORT: 2136
498+
MON_PORT: 8765
499+
ports:
500+
- 2136:2136
501+
- 8765:8765
502+
options: >-
503+
--hostname localhost
504+
--platform linux/amd64
505+
--health-cmd "true"
506+
--health-start-period 30s
479507
steps:
480508
- uses: actions/checkout@v4
481509
with:

dialect/entsql/annotation.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,15 +550,19 @@ type IndexAnnotation struct {
550550
DescColumns map[string]bool
551551

552552
// IncludeColumns defines the INCLUDE clause for the index.
553-
// Works only in Postgres and its definition is as follows:
553+
// Works only in Postgres and YDB. Its definition is as follows:
554554
//
555555
// index.Fields("c1").
556556
// Annotation(
557557
// entsql.IncludeColumns("c2"),
558558
// )
559559
//
560+
// Postgres:
560561
// CREATE INDEX "table_column" ON "table"("c1") INCLUDE ("c2")
561562
//
563+
// YDB:
564+
// ALTER TABLE `table` ADD INDEX `table_column` GLOBAL SYNC ON (`c1`) COVER (`c2`)
565+
//
562566
IncludeColumns []string
563567

564568
// Type defines the type of the index.

0 commit comments

Comments
 (0)