Skip to content

Commit b5f6138

Browse files
authored
Merge pull request #320 from tayloraswift/objectify-db-model
OOP for `Unidoc.DB`
2 parents 38611e9 + 9533dd7 commit b5f6138

File tree

169 files changed

+1350
-1491
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+1350
-1491
lines changed

.swiftformat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
--rules braces,redundantSelf,duplicateImports,linebreakAtEndOfFile,redundantReturn,sortImports
2-
--swiftversion 5.9.2
2+
--swiftversion 5.10
33
--allman true
44
--self insert
5+
6+
--exclude Sources/_AsyncChannel

Package.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,11 @@ let package:Package = .init(
290290

291291
.target(name: "Media"),
292292

293+
.target(name: "_MongoDB",
294+
dependencies: [
295+
.product(name: "MongoDB", package: "swift-mongodb"),
296+
]),
297+
293298
.target(name: "Multiparts",
294299
dependencies: [
295300
.target(name: "Media"),
@@ -482,11 +487,11 @@ let package:Package = .init(
482487

483488
.target(name: "UnidocDB",
484489
dependencies: [
490+
.target(name: "_MongoDB"),
485491
.target(name: "UnidocRecords_LZ77"),
486492
.target(name: "UnidocLinker"),
487493
.target(name: "UnidocRecords"),
488494
.product(name: "UnixCalendar", package: "swift-unixtime"),
489-
.product(name: "MongoDB", package: "swift-mongodb"),
490495
]),
491496

492497
.target(name: "UnidocRecords_LZ77",

Sources/FingerprintingTests/Main.AcceptLanguageParsing.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import Fingerprinting
12
import HTTP
23
import Testing_
3-
import Fingerprinting
44

55
extension Main
66
{

Sources/FingerprintingTests/Main.AcceptTypeParsing.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import Fingerprinting
12
import HTTP
23
import Testing_
3-
import Fingerprinting
44

55
extension Main
66
{

Sources/LinkResolution/Articles/UCF.ArticleResolver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import UCF
21
import Symbols
2+
import UCF
33

44
extension UCF
55
{

Sources/LinkResolution/Codelinks/UCF.KeywordFilter (ext).swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import UCF
21
import Symbols
2+
import UCF
33

44
extension UCF.KeywordFilter
55
{

Sources/LinkResolution/Codelinks/UCF.LegacyFilter (ext).swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import UCF
21
import Symbols
2+
import UCF
33

44
extension UCF.LegacyFilter
55
{

Sources/LinkResolution/Codelinks/UCF.Overload.Resolver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import UCF
21
import Symbols
2+
import UCF
33
import Unidoc
44

55
extension UCF.Overload

Sources/LinkResolution/Codelinks/UCF.Overload.Table.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import UCF
21
import FNV1
32
import LexicalPaths
43
import Symbols
4+
import UCF
55

66
extension UCF.Overload
77
{

Sources/LinkResolution/Codelinks/UCF.Overload.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import UCF
21
import FNV1
32
import Symbols
3+
import UCF
44

55
extension UCF
66
{

0 commit comments

Comments
 (0)