Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfrog26 committed Apr 23, 2024
1 parent 41075c9 commit 2e35df2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 0 additions & 7 deletions core/src/main/scala/lightdb/Collection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ import fabric.rw.RW
import io.chrisdavenport.keysemaphore.KeySemaphore
import lightdb.index._

sealed trait DocLock[D <: Document[D]] extends Any

object DocLock {
case class Set[D <: Document[D]](id: Id[D]) extends DocLock[D]
class Empty[D <: Document[D]] extends DocLock[D]
}

abstract class Collection[D <: Document[D]](val collectionName: String,
protected[lightdb] val db: LightDB,
val autoCommit: Boolean = false,
Expand Down
8 changes: 8 additions & 0 deletions core/src/main/scala/lightdb/DocLock.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package lightdb

sealed trait DocLock[D <: Document[D]] extends Any

object DocLock {
case class Set[D <: Document[D]](id: Id[D]) extends DocLock[D]
class Empty[D <: Document[D]] extends DocLock[D]
}

0 comments on commit 2e35df2

Please sign in to comment.