From 04dd42d197630b8aaf203e9546d7f1c5f2ab8409 Mon Sep 17 00:00:00 2001 From: Braydon Date: Tue, 12 Dec 2023 01:21:38 -0500 Subject: [PATCH] Ignore the playground --- .gitignore | 3 ++- .../java/me/braydon/feather/Playground.java | 26 ------------------- 2 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 src/main/java/me/braydon/feather/Playground.java 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