SurrealDB and Rust | UPDATE & RELATE | Rust Language

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 มี.ค. 2024
  • How to use update, relate, and how to drop a table using SurrealDB with Rust.
    In this video I also show Rust code to create and remove tables, and show the SurrealDB Discord channel. Note these tables are "schemaless" - I'll progress to "schemafull" soon.
    Check out Tobie explaing how everything in SurrealDB happens on write :
    th-cam.com/users/liveffzxt0iT...
    🦀 SurrealDB Rust Playlist
    • SurrealDB + Rust Examples
    ** New: I've created some slightly more ADVANCED queries and added them to my website, with these you will need to learn and understand "relate" but after a while it starts to feel a bit more intuitive.
    take v first
    -----------------
    .take(0) returns an empty iterator.
    .first() returns an Option containing the first element of the vector or None if the vector is empty.
    More advanced SurrealDB queries
    ----------------------------------------------------------
    🟩 redandgreen.co.uk/surrealdb-c...
    Previous Article:
    ---------------------------
    🟩 redandgreen.co.uk/learn-surre...
    code : gist.github.com/RGGH/d23d14d2...
    install SurrealDB
    ---------------------------
    🟩 surrealdb.com/install
    start the server
    -------------------------
    surreal start --log info --user root --pass root file:mydatabase.db
    Demo Data
    --------------------
    🟩 surrealdb.com/docs/surrealdb/...
    Useful code example using fetch, with query prepared using format! macro:
    -------------------------------------------------------------------------------------------------------------------------
    🟩 github.com/surrealdb/surreald...
    Linux Hosting - VPS server - Webdock
    ----------------------------------------------------------------
    🟩 Webdock Linux Hosting : webdock.io/en?maff=wdaff--170
    See also - Rust Code Maven:
    -------------------------------------------------
    🟩 rust.code-maven.com/surrealdb...
    Code used in this video:
    🟩 gist.github.com/RGGH/510fd401...
    Nostr
    ---------
    @RngWeb
    findthatbit@iris.to
    findthatbit.info/
    redandgreen.co.uk/
    #rustlang #SurrealDB #learningrust

ความคิดเห็น •