validation

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_OWNER_NAME_LENGTH = 44  // ETH addresses are 42, Solana are 44
	MAX_IDENT_NAME_LENGTH = 128 // reasoning for this value?  Also, does this apply to table names, which are potentially long with a schema prefix?
)

max name lengths

View Source
const (
	MAX_TABLE_COUNT           = 100
	MAX_COLUMNS_PER_TABLE     = 50 // per table
	MAX_ATTRIBUTES_PER_COLUMN = 5  // per column
)

table restrictions

View Source
const (
	MAX_INDEX_COUNT   = 100
	MAX_INDEX_COLUMNS = 5
)

index restrictions

View Source
const (
	MAX_QUERY_COUNT     = 400
	MAX_PARAM_PER_QUERY = 50
	MAX_WHERE_PER_QUERY = 3
)

query restrictions

View Source
const (
	MIN_WALLET_LENGTH = 42
	MAX_WALLET_LENGTH = 44
)

wallets

View Source
const (
	MAX_ROLE_COUNT = 50
)

role restrictions

Variables

This section is empty.

Functions

func CheckAddress

func CheckAddress(address string) error

func IsKeyword

func IsKeyword(str string) bool

func ValidateDBID

func ValidateDBID(dbid string) error

func ValidateIdentifier

func ValidateIdentifier(name string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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