surrealhigh

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 6 Imported by: 0

README

surrealmountain

surrealdb.go higher level library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBDoc

type DBDoc interface {
	Doc

	json.Marshaler

	DB() *surrealdb.DB
	Create() (Id, error)
}

type DefaultDoc

type DefaultDoc struct {
	// contains filtered or unexported fields
}

func NewDefaultDoc

func NewDefaultDoc(doc Doc, db *surrealdb.DB) DefaultDoc

func (DefaultDoc) Create

func (doc DefaultDoc) Create() (Id, error)

func (DefaultDoc) DB

func (doc DefaultDoc) DB() *surrealdb.DB

func (DefaultDoc) MarshalJSON

func (doc DefaultDoc) MarshalJSON() ([]byte, error)

func (DefaultDoc) Table

func (doc DefaultDoc) Table() Table

type Doc

type Doc interface {
	Table() Table
}

type Id

type Id uuid.UUID

func NewID

func NewID() Id

func (Id) String

func (i Id) String() string

func (Id) Thing

func (i Id) Thing(t Table) Thing

type Table

type Table string

func (Table) Prefix

func (t Table) Prefix() string

type Thing

type Thing string

func (Thing) String

func (t Thing) String() string

Jump to

Keyboard shortcuts

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