From 9ae9c33356d993bf522c197d6b458099b34d0b6f Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sat, 2 Aug 2025 13:41:06 -0400 Subject: [PATCH] vault backup: 08-02-2025 13:41:06 --- Databases/SurrealDB/Command line interface.md | 18 ++++++++++++------ Projects/HopeHouseProject/Scratch.md | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Databases/SurrealDB/Command line interface.md b/Databases/SurrealDB/Command line interface.md index bce45b5..99d42a0 100644 --- a/Databases/SurrealDB/Command line interface.md +++ b/Databases/SurrealDB/Command line interface.md @@ -1,22 +1,29 @@ ## Installation + 1. Install - - `curl -sSf https://install.surrealdb.com | sh` -2. Move into `$PATH` - - `sudo mv /home/wyatt/.surreal/surreal /usr/local/bin` + - `curl -sSf https://install.surrealdb.com | sh` +2. Move into `$PATH` + - `sudo mv /home/wyatt/.surreal/surreal /usr/local/bin` + +test + ## Syntax + `surreal ...` The dots represent a subcommand that is supposed to present. Almost if not all commands (and subcommands) always come with a `--help` flag so you can get a reference on what the command does ## Starting the database -Typically I have two commands I will perform when I start the database*: + +Typically I have two commands I will perform when I start the database\*: Option one: `surreal start --auth --user root --pass root` Option two: `surreal start --auth --user root --pass root file://path/to/database` Option two I'm still figuring out. I just export it once I'm done and then import the export once I'm ready to begin again. Speaking of... -*- I also use Docker (or some other OCI runtime like Podman) to run SurrealDB. It is in fact my preferred method -* +_- I also use Docker (or some other OCI runtime like Podman) to run SurrealDB. It is in fact my preferred method -_ + ## Importing an existing database Imports deal with SurQL files, similar to SQL files, filled with statements that SurrealDB will read and be ready when you start the database @@ -36,4 +43,3 @@ The HTTP protocol must be used in the export process ## SQL mode SurrealDB has a SQL-like (not compatible with ANSI SQL) language one can use for running (or piping) SurrealQL queries. You can find the syntax and some examples over [here](./Syntax). - diff --git a/Projects/HopeHouseProject/Scratch.md b/Projects/HopeHouseProject/Scratch.md index ef6bce1..30d74d2 100644 --- a/Projects/HopeHouseProject/Scratch.md +++ b/Projects/HopeHouseProject/Scratch.md @@ -1 +1 @@ -M \ No newline at end of file +test \ No newline at end of file