diff --git a/.gitignore b/.gitignore index 6811b43..9efa0c1 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,5 @@ crashlytics.properties crashlytics-build.properties fabric.properties git.properties -pom.xml.versionsBackup \ No newline at end of file +pom.xml.versionsBackup +Playground.java \ No newline at end of file diff --git a/src/main/java/me/braydon/feather/Playground.java b/src/main/java/me/braydon/feather/Playground.java deleted file mode 100644 index d0c443c..0000000 --- a/src/main/java/me/braydon/feather/Playground.java +++ /dev/null @@ -1,26 +0,0 @@ -package me.braydon.feather; - -import com.mongodb.ConnectionString; -import me.braydon.feather.databases.mongodb.MongoDB; - -/** - * @author Braydon - */ -public final class Playground { - public static void main(String[] args) { - MongoDB mongoDB = new MongoDB(); // Create the database instance - mongoDB.connect(new ConnectionString("mongodb://root:p4$$w0rd@localhost:27017/database")); // Connect to the MongoDB server - - // Get the ping to the database synchronously (blocking) - long ping = mongoDB.sync().getPing(); - System.out.println("ping = " + ping); - - // ...or get the ping to the database asynchronously (another thread) - mongoDB.async().getPing().thenAccept(asyncPing -> { - System.out.println("asyncPing = " + asyncPing); - }); - - // Close the connection after our app is done - mongoDB.close(); - } -} \ No newline at end of file