Skip to content

Commit bb65f8b

Browse files
committed
refactor(Project): moved to github mongocamp organization
from sfxcode simple-mongo to mongocamp
1 parent 028aa44 commit bb65f8b

File tree

91 files changed

+304
-313
lines changed

Some content is hidden

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

91 files changed

+304
-313
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ branches:
1515
notifications:
1616
email:
1717
recipients:
18-
- tom@sfxcode.com
18+
- tom@mongocamp.com
1919
jdk:
2020
- openjdk11
2121
- openjdk8
@@ -24,7 +24,7 @@ before_script:
2424
- echo "replSet = myReplSetName" | sudo tee -a /etc/mongodb.conf
2525
- sudo systemctl unmask mongod && sudo service mongod start
2626
- sleep 20
27-
- mongo --eval 'rs.initiate()'
27+
- mongodb --eval 'rs.initiate()'
2828
- sleep 15
2929

3030
after_success:

README.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# simple-mongo
1+
# Mongocamp MongoDB Driver
22

33
A library for easy usage of the mongo-scala-driver (4.5.x). Full MongoDB Functionality in Scala with a few lines of code.
44

55
## MongoDB Support
66

7-
Support MongoDB 2.6 to 4.2.
7+
Support MongoDB 2.6 to 5.0.x.
88

99
## Features
1010

@@ -23,22 +23,20 @@ Support MongoDB 2.6 to 4.2.
2323

2424
## Documentation
2525

26-
Documentation can be found [here](https://sfxcode.github.io/simple-mongo/).
26+
Documentation can be found [here](https://sfxcode.github.io/mongocamp/).
2727

2828
## Version
2929

3030
Scala Version is 2.13.x / 2.12.x.
3131

3232
## CI
3333

34-
[![Scala CI](https://github.com/sfxcode/simple-mongo/actions/workflows/scala.yml/badge.svg)](https://github.com/sfxcode/simple-mongo/actions/workflows/scala.yml)
35-
## Download
3634

37-
[ ![Download](https://api.bintray.com/packages/sfxcode/maven/simple-mongo/images/download.svg) ](https://bintray.com/sfxcode/maven/simple-mongo/_latestVersion)
35+
## Download
3836

3937
## Licence
4038

41-
[Apache 2 License](https://github.com/sfxcode/simple-mongo/blob/master/LICENSE).
39+
[Apache 2 License](https://github.com/sfxcode/mongocamp/blob/master/LICENSE).
4240

4341

4442
## Usage
@@ -47,19 +45,18 @@ Add following lines to your build.sbt (replace x.x with the actual Version)
4745

4846
```
4947
50-
libraryDependencies += "com.sfxcode.nosql" %% "simple-mongo" % "2.x.x"
48+
libraryDependencies += "dev.mongocamp.driver" %% "mongocamp" % "2.x.x"
5149
5250
```
5351

5452
Define MongoDB Connection and [DAO](https://en.wikipedia.org/wiki/Data_access_object) objects for automatic case class conversion.
5553

56-
5754
```scala
5855

5956
import java.util.Date
6057

61-
import com.sfxcode.nosql.mongo.MongoDAO
62-
import com.sfxcode.nosql.mongo.database.DatabaseProvider
58+
import dev.mongocamp.driver.mongodb.MongoDAO
59+
import dev.mongocamp.driver.mongodb.database.DatabaseProvider
6360
import org.bson.codecs.configuration.CodecRegistries._
6461
import org.mongodb.scala.bson.ObjectId
6562
import org.mongodb.scala.bson.codecs.Macros._
@@ -91,8 +88,8 @@ Import the database object and execute some find and CRUD functions on the DAO o
9188

9289
```scala
9390

94-
import com.sfxcode.nosql.mongo.demo.restaurant.RestaurantDemoDatabase._
95-
import com.sfxcode.nosql.mongo._
91+
import dev.mongocamp.driver.mongodb.demo.restaurant.RestaurantDemoDatabase._
92+
import dev.mongocamp.driver.mongodb._
9693

9794
trait RestaurantDemoDatabaseFunctions {
9895

@@ -140,7 +137,7 @@ Write some spec tests ...
140137

141138
```scala
142139

143-
import com.sfxcode.nosql.mongo.demo.restaurant.RestaurantDemoDatabase._
140+
import dev.mongocamp.driver.mongodb.demo.restaurant.RestaurantDemoDatabase._
144141
import org.specs2.mutable.Specification
145142

146143
class RestaurantDemoSpec extends Specification with RestaurantDemoDatabaseFunctions {

build.sbt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name := "simple-mongo"
1+
name := "mongocamp-driver-mongodb"
22

33
crossScalaVersions := Seq("2.13.8", "2.12.15")
44

@@ -8,33 +8,32 @@ scalacOptions += "-deprecation"
88

99
Test / parallelExecution := false
1010

11-
lazy val simple_mongo = (project in file("."))
11+
lazy val mongodb = (project in file("."))
1212
.enablePlugins(BuildInfoPlugin)
1313
.settings(
1414
buildInfoKeys ++= Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
15-
buildInfoPackage := "com.sfxcode.nosql.mongo"
15+
buildInfoPackage := "dev.mongocamp.driver.mongodb"
1616
)
1717

1818
lazy val docs = (project in file("docs"))
1919
.enablePlugins(ParadoxSitePlugin)
2020
.enablePlugins(ParadoxMaterialThemePlugin)
2121
.enablePlugins(GhpagesPlugin)
2222
.settings(
23-
name := "simple mongo docs",
23+
name := "simple mongodb docs",
2424
scalaVersion := "2.13.7",
25-
resolvers += "SFXCode" at "https://dl.bintray.com/sfxcode/maven/",
2625
libraryDependencies += "com.sfxcode.nosql" % "simple-mongo_2.13" % "2.3.0",
2726
libraryDependencies += "org.xerial.snappy" % "snappy-java" % "1.1.8.4",
2827
publish / skip := true,
2928
ghpagesNoJekyll := true,
30-
git.remoteRepo := "git@github.com:sfxcode/simple-mongo.git",
29+
git.remoteRepo := "git@github.com:mongocamp/mongocampdb.git",
3130
Compile / paradoxMaterialTheme ~= {
32-
_.withRepository(uri("https://github.com/sfxcode/simple-mongo"))
31+
_.withRepository(uri("https://github.com/sfxcode/mongocamp"))
3332
},
3433
(Compile / paradoxMarkdownToHtml / excludeFilter) := (Compile / paradoxMarkdownToHtml / excludeFilter).value ||
3534
ParadoxPlugin.InDirectoryFilter((Compile / paradox / sourceDirectory).value / "includes")
3635
)
37-
.dependsOn(simple_mongo)
36+
.dependsOn(mongodb)
3837

3938
buildInfoOptions += BuildInfoOption.BuildTime
4039

@@ -76,7 +75,7 @@ libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.4"
7675

7776
libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % "2.7.0"
7877

79-
buildInfoPackage := "com.sfxcode.nosql.mongo"
78+
buildInfoPackage := "dev.mongocamp.driver.mongodb"
8079

8180
buildInfoOptions += BuildInfoOption.BuildTime
8281

docs/src/main/paradox/changes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Version History
22
## Current Version
3-
[ ![Download](https://api.bintray.com/packages/sfxcode/maven/simple-mongo/images/download.svg) ](https://bintray.com/sfxcode/maven/simple-mongo/_latestVersion)
3+
[ ![Download](https://api.bintray.com/packages/sfxcode/maven/mongocamp/images/download.svg) ](https://bintray.com/sfxcode/maven/mongocamp/_latestVersion)
44

55

66
## History
77

8-
@@snip [Changes.md](/CHANGES.md)
8+
@@snip [Changes.md](/CHANGES.md)

docs/src/main/paradox/dao/base.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ are implemented.
2121
All functions support synchronous result handling.
2222

2323
Use pacckage import
24+
2425
```scala
25-
import com.sfxcode.nosql.mongo._
26+
import dev.mongocamp.driver.mongodb._
2627
```
2728

2829
and append
@@ -76,4 +77,4 @@ def dropIndex(keys: Bson): SingleObservable[Void]
7677
// Simple Index delete
7778
def dropIndexForName(name: String): SingleObservable[Void]
7879

79-
```
80+
```

docs/src/main/paradox/dao/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ A Type Parameter is used for automatic Document to Class conversion (case classe
3535
### Use DAO
3636

3737
```scala
38-
import com.sfxcode.nosql.mongo._
38+
import dev.mongocamp.driver.mongodb._
3939

4040
def restaurantsSize: Long = RestaurantDAO.count()
4141

docs/src/main/paradox/dao/search.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
```scala
1212
// Filter helper functions
13-
import com.sfxcode.nosql.mongo.Filter._
13+
import dev.mongocamp.driver.mongodb.Filter._
1414
// sort helper functions
15-
import com.sfxcode.nosql.mongo.Sort._
15+
import dev.mongocamp.driver.mongodb.Sort._
1616
// implicits like Document from Map ...
17-
import com.sfxcode.nosql.mongo._
17+
import dev.mongocamp.driver.mongodb._
1818
```
1919

2020
### Execute Search

docs/src/main/paradox/database/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ It is used for DatabaseProvider creation.
4141
| database | default database to use | |
4242
| host | | 127.0.0.1 |
4343
| port | | 27017 |
44-
| applicationName | | simple-mongo-app |
44+
| applicationName | | mongocamp-app |
4545
| userName | used for Authentification | |
4646
| password | used for Authentification | |
4747
| poolOptions | | MongoPoolOptions() |

docs/src/main/paradox/database/reactive_streams.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Reactive Streams
22

33
* The MongoDB Scala driver is built upon [Reactive Streams](https://www.reactive-streams.org/)
4-
* simple-mongo wraps around the scala driver => Full support of Reactive Streams
4+
* mongocamp wraps around the scala driver => Full support of Reactive Streams
55
* For Blocking Results (implicit) conversion to Result Objects is provided
66
* Conversion of Observable to Future is available
77

@@ -35,10 +35,10 @@ All functions have an optional maxWait parameter (Default maxWait = 10 seconds).
3535

3636
### Implicit Result Conversion (Blocking)
3737

38-
To use implicit result conversion, you have to import the simple mongo base package object.
38+
To use implicit result conversion, you have to import the mongocamp mongodb base package object.
3939

4040
```scala
41-
import com.sfxcode.nosql.mongo._
41+
import dev.mongocamp.driver.mongodb._
4242
```
4343

4444
After that, implicit conversion and other useful implicits (e.g. Map -> Bson) are available.

docs/src/main/paradox/gridfs/crud.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ With implicit conversion you can use for OID Parameter:
3636

3737
```scala
3838
// for implicit conversion usage
39-
import com.sfxcode.nosql.mongo._
39+
import dev.mongocamp.driver.mongodb._
4040

4141
ImageFilesDAO.deleteOne(oid)
42-
```
42+
```

0 commit comments

Comments
 (0)