MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Next

Method Next

testing/generation/command_docs/scanner.go:47–53  ·  view source on GitHub ↗

Next returns the next rune while advancing the scanner. Returns false if there are no more runes.

()

Source from the content-addressed store, hash-verified

45
46// Next returns the next rune while advancing the scanner. Returns false if there are no more runes.
47func (scanner *Scanner) Next() (rune, bool) {
48 if scanner.sourceIdx+1 >= len(scanner.source) {
49 return 0, false
50 }
51 scanner.sourceIdx++
52 return scanner.source[scanner.sourceIdx], true
53}
54
55// Peek returns the next rune. Does not advance the scanner. Returns false if there are no more runes.
56func (scanner *Scanner) Peek() (rune, bool) {

Callers 10

ProcessMethod · 0.95
QueryPostgresFunction · 0.45
ReadRowsFunction · 0.45
loadAllRowsFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
getSchemaAndResultsMethod · 0.45
dropAllTablesMethod · 0.45
dropAllViewsMethod · 0.45
getSchemaAndResultsMethod · 0.45

Calls

no outgoing calls

Tested by 2

ReadRowsFunction · 0.36
loadAllRowsFunction · 0.36