diff --git a/src/content/doc-sdk-rust/setup.mdx b/src/content/doc-sdk-rust/setup.mdx index 729d4ee20..c3171948f 100644 --- a/src/content/doc-sdk-rust/setup.mdx +++ b/src/content/doc-sdk-rust/setup.mdx @@ -20,7 +20,7 @@ import Label from "@components/shared/Label.astro"; }} /> -### Add the SDK +### Getting Started First, create a new project using `cargo new` and add the following dependencies: @@ -87,7 +87,7 @@ async fn main() -> surrealdb::Result<()> { Note that the `.query()` method is able to hold more than one statement, in this case three: two [`RETURN`](/docs/surrealql/statements/return) statements and one [`SELECT`](/docs/surrealql/statements/return) statement. The `Response` struct returned contains a field called `results` which holds the output of each statement. Note that each result has its own index. This will become useful when using the `.take()` method in the example to follow, which can access a result by its index number. -```bash +```surql title="Example output" results: { 0: ( Stats { @@ -296,7 +296,3 @@ Here is the last query in the example above to get started: ```surql SELECT marketing, count() FROM person GROUP BY marketing; ``` - -Helpful methods and types - -sql::thing() \ No newline at end of file