surreal

package
v0.0.0-...-51970bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec()

Starts the surrealDb database in a goroutine. The executable is searched in ./bin. If the database is not reachable the api tries three times to connect to it. If the database schema is not created the cli also creates the table

func FormatResponse

func FormatResponse(response *resty.Response) string

func PingDB

func PingDB() error

func Query

func Query(query string, args ...any) (*resty.Response, error)

func ScaffoldDB

func ScaffoldDB() error

func SplitDatabaseId

func SplitDatabaseId(id string) string

func Url

func Url() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL