Skip to content

Commit 4d75a8c

Browse files
feat: add SQL Server 2025 VECTOR type support
1 parent c16a19e commit 4d75a8c

21 files changed

+3553
-56
lines changed

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,30 @@
66
*.log
77
*.swp
88
*~
9+
10+
# Test outputs and coverage
911
coverage.json
1012
coverage.txt
1113
coverage.xml
1214
testresults.xml
15+
16+
# Test binaries (Go test -c output)
17+
*.test
18+
*.test.exe
19+
20+
# Profiling output (Go test -cpuprofile, -memprofile, etc.)
21+
*.prof
22+
*.pprof
23+
*.out
24+
cpu.out
25+
mem.out
26+
27+
# Connection strings and secrets
1328
.azureconnstr
29+
*.connstr
30+
.env
31+
.env.*
32+
!.env.example
1433

1534
# Example binaries
1635
examples/*/simple

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
# Changelog
2+
## 1.9.7
3+
4+
### Features
5+
6+
* Add SQL Server 2025 Vector data type support with `Vector` and `NullVector` types for AI/ML workloads (#306)
7+
- Supports float32 vectors up to 1998 dimensions
8+
- Supports float16 vectors up to 3996 dimensions (preview feature)
9+
- Compatible with `VECTOR_DISTANCE` similarity search functions
10+
- See [doc/how-to-use-vectors.md](doc/how-to-use-vectors.md) for usage guide
11+
* Add `vectortypesupport` connection string parameter to control native vector format
12+
- `off` (default): Vectors sent as JSON for backward compatibility
13+
- `v1`: Enable optimized binary TDS protocol for vectors (SQL Server 2025+)
14+
215
## 1.9.6
316

417
### Features

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ Other supported formats are listed below.
7171
* `true` (Default) Client attempt to connect to all IPs simultaneously.
7272
* `false` Client attempts to connect to IPs in serial.
7373
* `guid conversion` - Enables the conversion of GUIDs, so that byte order is preserved. UniqueIdentifier isn't supported for nullable fields, NullUniqueIdentifier must be used instead.
74+
* `vectortypesupport` - Controls native vector type support for SQL Server 2025+. See [How to use Vectors](doc/how-to-use-vectors.md).
75+
* `off` (Default) Vectors are sent as JSON strings for backward compatibility.
76+
* `v1` Enables optimized binary TDS protocol for vector data.
7477

7578
### Connection parameters for namedpipe package
7679
* `pipe` - If set, no Browser query is made and named pipe used will be `\\<host>\pipe\<pipe>`
@@ -598,6 +601,7 @@ Constrain the provider to an allowed list of key vaults by appending vault host
598601
* Supports query notifications
599602
* Supports Kerberos Authentication
600603
* Supports handling the `uniqueidentifier` data type with the `UniqueIdentifier` and `NullUniqueIdentifier` go types
604+
* Supports SQL Server 2025 Vector data type for AI/ML workloads with `Vector` and `NullVector` go types. See [How to use Vectors](doc/how-to-use-vectors.md)
601605
* Pluggable Dialer implementations through `msdsn.ProtocolParsers` and `msdsn.ProtocolDialers`
602606
* A `namedpipe` package to support connections using named pipes (np:) on Windows
603607
* A `sharedmemory` package to support connections using shared memory (lpc:) on Windows

0 commit comments

Comments
 (0)