This repository was archived by the owner on May 27, 2026. It is now read-only.
Tags: sv-tools/mongoifc
Tags
chore(deps): bump go.mongodb.org/mongo-driver/v2 from 2.4.0 to 2.5.0 (#… …282) * chore(deps): bump go.mongodb.org/mongo-driver/v2 from 2.4.0 to 2.5.0 Bumps [go.mongodb.org/mongo-driver/v2](https://github.com/mongodb/mongo-go-driver) from 2.4.0 to 2.5.0. - [Release notes](https://github.com/mongodb/mongo-go-driver/releases) - [Commits](mongodb/mongo-go-driver@v2.4.0...v2.5.0) --- updated-dependencies: - dependency-name: go.mongodb.org/mongo-driver/v2 dependency-version: 2.5.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * feat(session): expose SnapshotTime on session interface Add SnapshotTime() bson.Timestamp to the session interface and provide a thin wrapper implementation on the session type calling through to the underlying mongo.Session.SnapshotTime(). This exposes the session snapshot time so callers can read the transactional snapshot timestamp (used for causal/consistent reads) without accessing the underlying driver session directly. * feat(mock): add SnapshotTime mock to Session mocks Add SnapshotTime mock implementations to both mockery and gomock generated mocks for Session. - mocks/mockery/session.go: implement Session.SnapshotTime with panic if no return value, and add typed helper Session_SnapshotTime_Call with Run, Return, and RunAndReturn helpers to support expectations in tests. - mocks/gomock/mocks.go: add MockSession.SnapshotTime and recorder method to allow gomock-based tests to expect and return a bson.Timestamp. These changes enable tests to stub and assert SnapshotTime calls, improving testability for code that depends on session snapshot timestamps. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sergey Vilgelm <sergey@vilgelm.com>
feat(client): ad AppendDriverInfo and BulkWrite (#274) Add numerous thin wrapper methods for.ClientEncryption and mongo.Session to the package. ClientEncryption, add wrappers for: KeyAltName, Close, CreateData, CreateEncryptedCollection, Decrypt, DeleteKey, Encrypt, EncryptExpression, GetKey, GetKeyByAltName, GetKeys, RemoveKeyAltName, RewrapManyDataKey, and export NewClientEncryption with documentation link. For Session, add wrappers for: StartTransaction, AbortTransaction, CommitTransaction, WithTransaction, EndSession, ClusterTime, OperationTime, Client, and ID. These wrappers forward calls to the underlying mongo driver types or wrap results (e.g., SingleResult, Cursor) so the package can expose a stable, testable interface and centralize result wrapping/abstraction. This prepares the codebase for easier mocking and better encapsulation of the mongo driver.
Bump go.mongodb.org/mongo-driver/v2 from 2.2.2 to 2.3.0 (#256) Bumps [go.mongodb.org/mongo-driver/v2](https://github.com/mongodb/mongo-go-driver) from 2.2.2 to 2.3.0. - [Release notes](https://github.com/mongodb/mongo-go-driver/releases) - [Commits](mongodb/mongo-go-driver@v2.2.2...v2.3.0) --- updated-dependencies: - dependency-name: go.mongodb.org/mongo-driver/v2 dependency-version: 2.3.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump github/codeql-action from 3.28.19 to 3.29.0 in the ci group (#250) Bumps the ci group with 1 update: [github/codeql-action](https://github.com/github/codeql-action). Updates `github/codeql-action` from 3.28.19 to 3.29.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@fca7ace...ce28f5b) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 3.29.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: ci ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump golangci/golangci-lint-action from 6.1.1 to 6.2.0 (#201) Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.1.1 to 6.2.0. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](golangci/golangci-lint-action@971e284...ec5d184) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bump github/codeql-action from 3.26.7 to 3.26.8 (#160) Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.7 to 3.26.8. - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@8214744...294a9d9) --- updated-dependencies: - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
PreviousNext