Skip to content

Commit 490f67b

Browse files
committed
Add back and deprecate MongoClient(fromPointer:)
1 parent 711a99e commit 490f67b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Sources/MongoSwift/MongoClient.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,14 @@ public class MongoClient {
213213
}
214214
}
215215

216+
/**
217+
* :nodoc:
218+
*/
219+
@available(*, deprecated, message: "Use MongoClient(stealing:) instead.")
220+
public convenience init(fromPointer pointer: OpaquePointer) {
221+
self.init(stealing: pointer)
222+
}
223+
216224
/**
217225
* :nodoc:
218226
* Create a new client from an existing `mongoc_client_t`. The new client will destroy the `mongoc_client_t` upon

0 commit comments

Comments
 (0)