Getting started with SurrealDB using our Rust SDK
Автор: SurrealDB
Загружено: 2025-09-10
Просмотров: 1110
Описание:
👉 In this tutorial, we’ll walk through how to get started with the Rust SDK for SurrealDB.
You’ll learn how to set up a Rust project with Cargo, connect to SurrealDB, run queries, deserialize results into Rust structs, and use handy tips like Value, Resource, and environment variables to make development faster and more flexible.
By the end, you’ll be able to prototype and build Rust apps with SurrealDB in both embedded and cloud modes - without unnecessary recompilation.
Chapters
00:00 - Intro
00:20 - Setting up a Rust project with Cargo
01:12 - Running queries and handling results
02:08 - Using .take() and deserializing into structs
02:53 - Working with Value for quick prototyping
03:30 - Using .create() and Resource for type-safe inserts
04:09 - Adding JSON content with serde_json
04:37 - Switching between embedded and cloud with environment variables
06:29 - Conclusion
Resources
☁️ Create your free SurrealDB Cloud account: https://surrealdb.com/cloud
📖 Rust SDK docs: https://surrealdb.com/docs/rust
👨💻 GitHub examples: https://github.com/surrealdb/examples
SurrealDB:
☁️ Surreal Cloud: https://surrealdb.com/cloud
🎩 Surrealist: https://surrealdb.com/surrealist
🎓 SurrealDB University: https://surrealdb.com/learn
🌍 SurrealDB Website: https://surrealdb.com/
👉 SurrealDB GitHub: https://github.com/surrealdb/surrealdb
🐦 SurrealDB Twitter: / surrealdb
👨💻 SurrealDB LinkedIn: / surrealdb
👉 SurrealDB Discord: / discord
📸 SurrealDB Instagram: / surrealdb
👚 Shop the merch: https://surrealdb.store/
What is SurrealDB?
SurrealDB is an end-to-end cloud-native database designed for modern applications, including web, mobile, serverless, Jamstack, backend, and traditional applications. With SurrealDB, you can simplify your database and API infrastructure, reduce development time, and build secure, performant apps quickly and cost-effectively.
👉 Get started with SurrealDB: https://sdb.li/getstarted
Key features of SurrealDB:
⭐ Reduces development time: SurrealDB simplifies your database and API stack by removing the need for most server-side components, allowing you to build secure, performant apps faster and cheaper.
⭐ Real-time collaborative API backend service: SurrealDB functions as both a database and an API backend service, enabling real-time collaboration.
⭐ Support for multiple querying languages: SurrealDB supports SQL querying from client devices, GraphQL, ACID transactions, WebSocket connections, structured and unstructured data, graph querying, full-text indexing, and geospatial querying.
⭐ Granular access control: SurrealDB provides row-level permissions-based access control, giving you the ability to manage data access with precision.
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: