surreal_use
An extension library based on the Surrealdb library to help users develop more conveniently
________ ___ ___ ________ ________ _______ ________ ___ ___ ___ ________ _______
|\ ____\|\ \|\ \|\ __ \|\ __ \|\ ___ \ |\ __ \|\ \ |\ \|\ \|\ ____\|\ ___ \
\ \ \___|\ \ \\\ \ \ \|\ \ \ \|\ \ \ __/|\ \ \|\ \ \ \ \ \ \\\ \ \ \___|\ \ __/|
\ \_____ \ \ \\\ \ \ _ _\ \ _ _\ \ \_|/_\ \ __ \ \ \ \ \ \\\ \ \_____ \ \ \_|/__
\|____|\ \ \ \\\ \ \ \\ \\ \ \\ \\ \ \_|\ \ \ \ \ \ \ \____ \ \ \\\ \|____|\ \ \ \_|\ \
____\_\ \ \_______\ \__\\ _\\ \__\\ _\\ \_______\ \__\ \__\ \_______\\ \_______\____\_\ \ \_______\
|\_________\|_______|\|__|\|__|\|__|\|__|\|_______|\|__|\|__|\|_______| \|_______|\_________\|_______|
\|_________| \|_________|
- author:syf20020816@outlook.com
- createDate:20240115
- updateDate:20240127
- version:0.1.0
- email:syf20020816@outlook.com
What surreal_use do
- Detaching database configurations and code
- Reduce manual writing of SurrealQL statements
- Perform differentiated API queries
- Effortlessly perform complex queries
- Enable users to feel seamless integration with the Surrealdb library
QuickStart
write surrealdb.config.json
use surreal_use
use lazy_static;
use ;
use ;
// use lazy static macro
lazy_static!
async
Attation
There are many structures in use with the same name as the surrealdb library, which exist as extensions to the source library
Features
- select
- update
- insert
- delete
- create
- use
- begin
- break
- cancel
- commit
- continue
- define
- for
- if
- info
- kill
- let
- live select
- relate
- remove
- return
- show
- sleep
- throw