Skip to content

Commit

Permalink
Release 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfrog26 committed Jan 10, 2025
1 parent e1aaa02 commit 22879d0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ Computationally focused database using pluggable stores

To add all modules:
```scala
libraryDependencies += "com.outr" %% "lightdb-all" % "2.0.1"
libraryDependencies += "com.outr" %% "lightdb-all" % "2.1.0"
```

For a specific implementation like Lucene:
```scala
libraryDependencies += "com.outr" %% "lightdb-lucene" % "2.0.1"
libraryDependencies += "com.outr" %% "lightdb-lucene" % "2.1.0"
```

## Videos
Expand Down Expand Up @@ -56,7 +56,7 @@ Ensure you have the following:
Add the following dependency to your `build.sbt` file:

```scala
libraryDependencies += "com.outr" %% "lightdb-all" % "2.0.1"
libraryDependencies += "com.outr" %% "lightdb-all" % "2.1.0"
```

---
Expand Down Expand Up @@ -132,7 +132,7 @@ Instantiate and initialize the database:

```scala
val db = new DB
// db: DB = repl.MdocSession$MdocApp$DB@468da967
// db: DB = repl.MdocSession$MdocApp$DB@21bba8b4
db.init.sync()
```

Expand All @@ -148,7 +148,7 @@ val adam = Person(name = "Adam", age = 21)
// city = None,
// nicknames = Set(),
// friends = List(),
// _id = Id(value = "b97xde4gBEVjx5kmhERIuW0mViUUzwgD")
// _id = Id(value = "sviPlbAHMRPe70xFYdqLWOWcold9vD18")
// )
db.people.transaction { implicit transaction =>
db.people.insert(adam)
Expand All @@ -159,7 +159,7 @@ db.people.transaction { implicit transaction =>
// city = None,
// nicknames = Set(),
// friends = List(),
// _id = Id(value = "b97xde4gBEVjx5kmhERIuW0mViUUzwgD")
// _id = Id(value = "sviPlbAHMRPe70xFYdqLWOWcold9vD18")
// )
```

Expand All @@ -173,7 +173,7 @@ db.people.transaction { implicit transaction =>
println(s"People in their 20s: $peopleIn20s")
}
}.sync()
// People in their 20s: List(Person(Adam,21,None,Set(),List(),Id(jh1j1u8RFGhdDsgLA9FTvFhT6gmK4sA2)), Person(Adam,21,None,Set(),List(),Id(HN5sRuc4kzsD117zfXWgik8cYiXgBnV5)), Person(Adam,21,None,Set(),List(),Id(b97xde4gBEVjx5kmhERIuW0mViUUzwgD)))
// People in their 20s: List(Person(Adam,21,None,Set(),List(),Id(jh1j1u8RFGhdDsgLA9FTvFhT6gmK4sA2)), Person(Adam,21,None,Set(),List(),Id(HN5sRuc4kzsD117zfXWgik8cYiXgBnV5)), Person(Adam,21,None,Set(),List(),Id(b97xde4gBEVjx5kmhERIuW0mViUUzwgD)), Person(Adam,21,None,Set(),List(),Id(sviPlbAHMRPe70xFYdqLWOWcold9vD18)))
```

---
Expand Down Expand Up @@ -210,7 +210,7 @@ db.people.transaction { implicit transaction =>
println(s"Results: $results")
}
}.sync()
// Results: List(MaterializedAggregate({"ageMin": 21, "ageMax": 21, "ageAvg": 21.0, "ageSum": 63},repl.MdocSession$MdocApp$Person$@506316f))
// Results: List(MaterializedAggregate({"ageMin": 21, "ageMax": 21, "ageAvg": 21.0, "ageSum": 84},repl.MdocSession$MdocApp$Person$@7cba50b0))
```

### Grouping
Expand All @@ -221,7 +221,7 @@ db.people.transaction { implicit transaction =>
println(s"Grouped: $grouped")
}
}.sync()
// Grouped: List(Grouped(21,List(Person(Adam,21,None,Set(),List(),Id(jh1j1u8RFGhdDsgLA9FTvFhT6gmK4sA2)), Person(Adam,21,None,Set(),List(),Id(HN5sRuc4kzsD117zfXWgik8cYiXgBnV5)), Person(Adam,21,None,Set(),List(),Id(b97xde4gBEVjx5kmhERIuW0mViUUzwgD)))))
// Grouped: List(Grouped(21,List(Person(Adam,21,None,Set(),List(),Id(jh1j1u8RFGhdDsgLA9FTvFhT6gmK4sA2)), Person(Adam,21,None,Set(),List(),Id(HN5sRuc4kzsD117zfXWgik8cYiXgBnV5)), Person(Adam,21,None,Set(),List(),Id(b97xde4gBEVjx5kmhERIuW0mViUUzwgD)), Person(Adam,21,None,Set(),List(),Id(sviPlbAHMRPe70xFYdqLWOWcold9vD18)))))
```

---
Expand All @@ -235,14 +235,14 @@ import lightdb.backup._
import java.io.File

DatabaseBackup.archive(db, new File("backup.zip")).sync()
// res5: Int = 4
// res5: Int = 5
```

Restore from a backup:

```scala
DatabaseRestore.archive(db, new File("backup.zip")).sync()
// res6: Int = 4
// res6: Int = 5
```

---
Expand Down
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ val developerURL: String = "https://matthicks.com"

name := projectName
ThisBuild / organization := org
ThisBuild / version := "2.1.0-SNAPSHOT"
ThisBuild / version := "2.1.0"
ThisBuild / scalaVersion := scala213
ThisBuild / crossScalaVersions := allScalaVersions
ThisBuild / scalacOptions ++= Seq("-unchecked", "-deprecation")
Expand Down Expand Up @@ -45,7 +45,7 @@ ThisBuild / javaOptions ++= Seq(
)

ThisBuild / Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-oDF")

ThisBuild / Test / parallelExecution := false
ThisBuild / Test / testOptions += Tests.Argument("-n", "spec.EmbeddedTest")

val collectionCompatVersion: String = "2.12.0"
Expand All @@ -66,7 +66,7 @@ val jedisVersion: String = "5.2.0"

val fabricVersion: String = "1.15.6"

val scribeVersion: String = "3.15.3"
val scribeVersion: String = "3.16.0"

val luceneVersion: String = "10.1.0"

Expand All @@ -82,7 +82,7 @@ val h2Version: String = "2.3.232"

val postgresqlVersion: String = "42.7.3"

val rapidVersion: String = "0.5.0"
val rapidVersion: String = "0.7.0"

val scalaTestVersion: String = "3.2.19"

Expand Down

0 comments on commit 22879d0

Please sign in to comment.