cockroach: github.com/cockroachdb/cockroach/pkg/util/sequence Index | Files

package sequence

import "github.com/cockroachdb/cockroach/pkg/util/sequence"

Index

Package Files

sequence.go

func GetSequenceFromFunc Uses

func GetSequenceFromFunc(funcExpr *tree.FuncExpr) (*string, error)

GetSequenceFromFunc extracts a sequence name from a FuncExpr if the function takes a sequence name as an arg. Returns the name of the sequence or nil if no sequence was found.

func GetUsedSequenceNames Uses

func GetUsedSequenceNames(defaultExpr tree.TypedExpr) ([]string, error)

GetUsedSequenceNames returns the name of the sequence passed to a call to sequence function in the given expression or nil if no sequence names are found. e.g. nextval('foo') => "foo"; <some other expression> => nil

Package sequence imports 5 packages (graph) and is imported by 2 packages. Updated 2020-07-03. Refresh now. Tools for package owners.