Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
4466cea
dialect/sql/sqlgraph: added usage of upsert instead of insert
LostImagin4tion Jan 18, 2026
2ec3794
dialect/sql/schema: added support for cover columns in indexes
LostImagin4tion Jan 19, 2026
30e795d
etc/integration: added ydb container
LostImagin4tion Jan 20, 2026
8defab7
dialect/sql: fixed custom types conversion
LostImagin4tion Jan 21, 2026
7133a05
ent/entc/integration: added ydb container
LostImagin4tion Jan 21, 2026
e5e6462
fixed index creation
LostImagin4tion Jan 21, 2026
1cda46c
ent/entc/integration: added integration tests for ydb
LostImagin4tion Jan 22, 2026
88f8716
dialect/sql/sqlgraph: fixed foreign keys edges handling
LostImagin4tion Jan 22, 2026
9f9f4c6
dialect/sql: fixed column scanning for ydb
LostImagin4tion Jan 23, 2026
450fbde
dialect/sql/sqlgraph: improved code style of HasNeighbors
LostImagin4tion Jan 23, 2026
cf839a3
dialect/sql/sqlgraph: added execUpdate method with ydb 'returning' cl…
LostImagin4tion Jan 23, 2026
85e3630
dialect/sql: added aliases for columns that are expressions
LostImagin4tion Jan 23, 2026
085d67f
dialect/sql: fixed template escaped and added escape clause
LostImagin4tion Jan 23, 2026
e22a2fc
dialect/sql: fixed ToLower function
LostImagin4tion Jan 23, 2026
ed0fa3f
dialect/sql/schema: fixed index migrations
LostImagin4tion Jan 24, 2026
3c41af5
dialect/sql/sqlgraph: use upsert only when conflict options specified
LostImagin4tion Jan 24, 2026
862a1d5
entc/ingtegration: fixed transactions test
LostImagin4tion Jan 24, 2026
55d880f
entc/ingtegration: skip Lock test for ydb
LostImagin4tion Jan 24, 2026
2ec8132
dialect/sql/schema: changed name for secondary indexes
LostImagin4tion Jan 24, 2026
c86299b
dialect/sql/sqlgraph: added message for unique constraint violation
LostImagin4tion Jan 24, 2026
1c4fd67
dialect/sql: added ydb type conversion
LostImagin4tion Jan 24, 2026
756ad48
dialect/sql/sqlgraph: improved code style of HasNeighborsWith
LostImagin4tion Jan 25, 2026
929448a
dialect/sql: fixed double alias bug
LostImagin4tion Jan 25, 2026
c110180
dialect/sql: fixed aliases extraction and applying it in ORDER BY
LostImagin4tion Jan 25, 2026
c7cb115
dialect/sql: added Upper function
LostImagin4tion Jan 25, 2026
4159c2b
entc/integration: fixed Select test
LostImagin4tion Jan 25, 2026
9bac7bf
dialect/sql: changed sql.Named to driver.NamedValue arg
LostImagin4tion Jan 25, 2026
7aeb389
dialect/sql/sqlgraph: use DELETE RETURNING for ydb instead of rows af…
LostImagin4tion Jan 25, 2026
f7c861e
entc/integration: fixed Delete test
LostImagin4tion Jan 25, 2026
e62d72f
entc/integration: skip Upsert test for ydb
LostImagin4tion Jan 25, 2026
d0843b8
dialect/sql: added support for ColumnsHasPrefix for ydb
LostImagin4tion Jan 25, 2026
3b5d7f4
dialect/sql/builder: fixed aliases applying
LostImagin4tion Jan 26, 2026
a0dcc85
dialect/sql/builder: fixed UniqueConstraint test
LostImagin4tion Jan 26, 2026
28bd7f7
dialect/sql/builder: fixed relations tests
LostImagin4tion Jan 26, 2026
65ced7b
dialect/sql: added support for YDB variables in query
LostImagin4tion Jan 26, 2026
031d031
dialect/sql: fixed aliases again
LostImagin4tion Jan 26, 2026
78a666a
entc/integration: skip foreign key constraints test
LostImagin4tion Jan 26, 2026
108bd9f
entc/integration: skip ExtValueScan test
LostImagin4tion Jan 26, 2026
75f0bc7
dialect/sql/sqlgraph: fixed primary key qualifiers
LostImagin4tion Jan 26, 2026
9ddc74d
dialect/sql: fixed linter
LostImagin4tion Jan 26, 2026
1532e18
dialect/sql: fixed tests
LostImagin4tion Jan 26, 2026
cdc07a5
.github/workflows: added ydb image to ci
LostImagin4tion Jan 26, 2026
51591e7
bump ydb-go-sdk and atlas
LostImagin4tion Jan 28, 2026
75902c9
dialect/sql: minor code style improvements
LostImagin4tion Feb 2, 2026
8578cae
entc/integration: update go.mod
LostImagin4tion Feb 3, 2026
65272ba
dialect/sql/sqlgraph: fixed handling composite primary key
LostImagin4tion Feb 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,20 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
ydb:
image: ydbplatform/local-ydb:trunk
env:
GRPC_TLS_PORT: 2135
GRPC_PORT: 2136
MON_PORT: 8765
ports:
- 2136:2136
- 8765:8765
options: >-
--hostname localhost
--platform linux/amd64
--health-cmd "true"
--health-start-period 30s
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand Down Expand Up @@ -476,6 +490,20 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
ydb:
image: ydbplatform/local-ydb:trunk
env:
GRPC_TLS_PORT: 2135
GRPC_PORT: 2136
MON_PORT: 8765
ports:
- 2136:2136
- 8765:8765
options: >-
--hostname localhost
--platform linux/amd64
--health-cmd "true"
--health-start-period 30s
steps:
- uses: actions/checkout@v4
with:
Expand Down
6 changes: 5 additions & 1 deletion dialect/entsql/annotation.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,15 +550,19 @@ type IndexAnnotation struct {
DescColumns map[string]bool

// IncludeColumns defines the INCLUDE clause for the index.
// Works only in Postgres and its definition is as follows:
// Works only in Postgres and YDB. Its definition is as follows:
//
// index.Fields("c1").
// Annotation(
// entsql.IncludeColumns("c2"),
// )
//
// Postgres:
// CREATE INDEX "table_column" ON "table"("c1") INCLUDE ("c2")
//
// YDB:
// ALTER TABLE `table` ADD INDEX `table_column` GLOBAL SYNC ON (`c1`) COVER (`c2`)
//
IncludeColumns []string

// Type defines the type of the index.
Expand Down
Loading
Loading