sqlcore

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSchema

func CreateSchema(sqlText, originApp string, biscuitArray []string) (errMsg string, status bool)

Create a new schema

func CreateTable

func CreateTable(sqlText, accessType, originApp string, biscuitArray []string, publicKey ed25519.PublicKey) (errMsg string, status bool)

Create a new table on a given namespace. accessType: can be public, permissioned or encrypted. Read more here https://docs.spaceandtime.io/docs/secure-your-table

func DDL

func DDL(sqlText, originApp string, biscuitArray []string) (errMsg string, status bool)

DDL queries for ALTER and DROP

func DML

func DML(sqlText, originApp string, biscuitArray []string, resources []string) (errMsg string, status bool)

Run all DML queries

func DQL

func DQL(sqlText, originApp string, biscuitArray, resources []string, rowCount int) (data []byte, errMsg string, status bool)

Run all DQL queries rowCount is optional

Types

This section is empty.

Jump to

Keyboard shortcuts

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