Skip to content

Commit e409edb

Browse files
committed
update mongodb type names
1 parent e29aec8 commit e409edb

13 files changed

+14
-14
lines changed

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ let package:Package = .init(
100100
from: "0.5.0")),
101101
//.package(url: "https://github.com/tayloraswift/swift-mongodb", .upToNextMinor(
102102
// from: "0.11.0")),
103-
.package(url: "https://github.com/tayloraswift/swift-mongodb", branch: "0.12"),
103+
.package(url: "https://github.com/tayloraswift/swift-mongodb", branch: "swap-type-names"),
104104
.package(url: "https://github.com/tayloraswift/swift-png", .upToNextMinor(
105105
from: "4.2.0")),
106106

Sources/UnidocDB/Mongo.CollectionIndex.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extension Mongo.CollectionIndex
5151
}
5252
extension Mongo.CollectionIndex
5353
{
54-
func build(statement:inout Mongo.CreateIndexStatement)
54+
func build(statement:inout Mongo.CreateIndexStatementEncoder)
5555
{
5656
statement[.name] = self.id
5757
statement[.collation] = self.collation

Sources/UnidocDB/Mongo.CollectionModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ extension Mongo.CollectionModel
415415
}
416416
@inlinable package
417417
func update(with session:Mongo.Session,
418-
do encode:(inout Mongo.UpdateEncoder<Mongo.One>) throws -> ()) async throws -> Bool?
418+
do encode:(inout Mongo.UpdateListEncoder<Mongo.One>) throws -> ()) async throws -> Bool?
419419
{
420420
let response:Mongo.UpdateResponse<Element.ID> = try await session.run(
421421
command: Mongo.Update<Mongo.One, Element.ID>.init(Self.name)

Sources/UnidocDB/Mongo.UpdateEncoder (ext).swift renamed to Sources/UnidocDB/Mongo.UpdateListEncoder (ext).swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import BSON
22
import MongoDB
33

4-
extension Mongo.UpdateEncoder
4+
extension Mongo.UpdateListEncoder
55
{
66
@inlinable mutating
77
func update(field:Mongo.AnyKeyPath,

Sources/UnidocDB/Mongo.UpdateQuery.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protocol _MongoUpdateQuery<Target>:Sendable
1616
associatedtype Effect:Mongo.WriteEffect
1717

1818
/// Constructs an update query by adding statements to the given encoder.
19-
func build(updates:inout Mongo.UpdateEncoder<Effect>)
19+
func build(updates:inout Mongo.UpdateListEncoder<Effect>)
2020

2121
var ordered:Bool { get }
2222
}

Sources/UnidocDB/Packages/Unidoc.DB.Packages.AlignRealm.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extension Unidoc.DB.Packages.AlignRealm:Mongo.UpdateQuery
3030

3131
var ordered:Bool { false }
3232

33-
func build(updates:inout Mongo.UpdateEncoder<Mongo.One>)
33+
func build(updates:inout Mongo.UpdateListEncoder<Mongo.One>)
3434
{
3535
updates
3636
{

Sources/UnidocDB/Snapshots/Unidoc.DB.Snapshots.ClearUplink.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extension Unidoc.DB.Snapshots.ClearUplink:Mongo.UpdateQuery
2121
var ordered:Bool { false }
2222

2323
public
24-
func build(updates:inout Mongo.UpdateEncoder<Mongo.One>)
24+
func build(updates:inout Mongo.UpdateListEncoder<Mongo.One>)
2525
{
2626
updates
2727
{

Sources/UnidocDB/Snapshots/Unidoc.DB.Snapshots.QueueUplink.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extension Unidoc.DB.Snapshots.QueueUplink:Mongo.UpdateQuery
2222
var ordered:Bool { false }
2323

2424
public
25-
func build(updates:inout Mongo.UpdateEncoder<Mongo.Many>)
25+
func build(updates:inout Mongo.UpdateListEncoder<Mongo.Many>)
2626
{
2727
updates
2828
{

Sources/UnidocDB/Vertices/Unidoc.DB.Groups.AlignLatest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extension Unidoc.DB.Groups.AlignLatest:Mongo.UpdateQuery
2424

2525
var ordered:Bool { true }
2626

27-
func build(updates:inout Mongo.UpdateEncoder<Mongo.Many>)
27+
func build(updates:inout Mongo.UpdateListEncoder<Mongo.Many>)
2828
{
2929
let latest:ClosedRange<Unidoc.Scalar> = .edition(self.latest)
3030
let all:ClosedRange<Unidoc.Scalar> = .package(self.latest.package)

Sources/UnidocDB/Vertices/Unidoc.DB.Groups.ClearLatest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extension Unidoc.DB.Groups.ClearLatest:Mongo.UpdateQuery
2222

2323
var ordered:Bool { false }
2424

25-
func build(updates:inout Mongo.UpdateEncoder<Mongo.Many>)
25+
func build(updates:inout Mongo.UpdateListEncoder<Mongo.Many>)
2626
{
2727
updates
2828
{

Sources/UnidocDB/Volumes/Unidoc.DB.Volumes.AlignLatest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extension Unidoc.DB.Volumes.AlignLatest:Mongo.UpdateQuery
2222

2323
var ordered:Bool { false }
2424

25-
func build(updates:inout Mongo.UpdateEncoder<Mongo.Many>)
25+
func build(updates:inout Mongo.UpdateListEncoder<Mongo.Many>)
2626
{
2727
// If the metadata document for `self.latest` doesn’t have the latest-flag, add it.
2828
updates

Sources/UnidocDB/Volumes/Unidoc.DB.Volumes.AlignRealm.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ extension Unidoc.DB.Volumes.AlignRealm:Mongo.UpdateQuery
2424

2525
var ordered:Bool { false }
2626

27-
func build(updates:inout Mongo.UpdateEncoder<Mongo.Many>)
27+
func build(updates:inout Mongo.UpdateListEncoder<Mongo.Many>)
2828
{
2929
updates
3030
{

0 commit comments

Comments
 (0)