Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/auxten/go-sqldb
/ functions
Functions
68 in github.com/auxten/go-sqldb
⨍
Functions
68
◇
Types & classes
19
↓ 18 callers
Method
GetPage
(pageIdx uint32)
page/page.go:67
↓ 16 callers
Method
Size
()
node/node.schema.gen.go:534
↓ 11 callers
Function
Length
(s []byte)
utils/bytes.go:3
↓ 9 callers
Method
Marshal
(buf []byte)
node/node.schema.gen.go:548
↓ 9 callers
Method
ParseInsert
* ParseInsert can parse a simple INSERT statement, eg. INSERT INTO table_name VALUES (value1, value2, …) or INSERT INTO table_name(column1, column
parser/parser.go:161
↓ 9 callers
Method
ParseSelect
* ParseSelect is a simple select statement parser. It's just a demo of SELECT statement parser skeleton. Currently, the most complex SQL supported her
parser/parser.go:72
↓ 8 callers
Function
NewPlan
(t *page.Table)
planner/plan.go:18
↓ 7 callers
Method
Unmarshal
(buf []byte)
node/node.schema.gen.go:593
↓ 6 callers
Method
GetMaxKey
()
page/page.go:17
↓ 6 callers
Function
Open
(fileName string)
db/db.go:7
↓ 5 callers
Method
GetSQLType
(sql string)
parser/parser.go:42
↓ 5 callers
Method
SelectPrepare
(ast *parser.SelectTree)
planner/select.go:15
↓ 4 callers
Method
Child
(childIdx uint32)
node/node.go:51
↓ 4 callers
Method
Insert
(ast *parser.InsertTree)
planner/insert.go:11
↓ 3 callers
Method
FindChildByKey
FindChildByKey returns the index of the child which should contain the given key.
node/node.go:33
↓ 3 callers
Method
Insert
(row *node.Row)
page/table.go:34
↓ 3 callers
Function
PrintRow
* Id uint32 Sex byte Age uint8 Username [32]byte Email [128]byte Phone [64]byte */
node/schema.go:23
↓ 3 callers
Method
Seek
Seek the page of key, if not exist then return the place key should be for the later INSERT.
page/table.go:16
↓ 2 callers
Function
Close
(t *page.Table)
db/db.go:33
↓ 2 callers
Function
InitLeafNode
(node *node.LeafNode)
page/btree.go:7
↓ 2 callers
Function
WriteRow
(w io.Writer, row *Row)
node/schema.go:27
↓ 2 callers
Method
leafNodeSeek
(pageIdx uint32, key uint32)
page/table.go:59
↓ 2 callers
Function
saveToCell
(cell *node.Cell, key uint32, row *node.Row)
page/cursor.go:122
↓ 1 callers
Method
CreateNewRoot
(rightChildPageIdx uint32)
page/table.go:118
↓ 1 callers
Method
Flush
(pageIdx uint32)
page/page.go:109
↓ 1 callers
Function
InitInternalNode
(node *node.InternalNode)
page/btree.go:14
↓ 1 callers
Method
InternalNodeInsert
(parentPageIdx uint32, childPageIdx uint32)
page/table.go:175
↓ 1 callers
Method
LeafNodeInsert
(key uint32, row *node.Row)
page/cursor.go:14
↓ 1 callers
Method
LeafNodeSplitInsert
(key uint32, row *node.Row)
page/cursor.go:43
↓ 1 callers
Function
PagerOpen
(fileName string)
page/page.go:34
↓ 1 callers
Method
Size
()
node/node.schema.gen.go:21
↓ 1 callers
Method
Size
()
node/node.schema.gen.go:87
↓ 1 callers
Method
Size
()
node/node.schema.gen.go:149
↓ 1 callers
Method
Size
()
node/node.schema.gen.go:211
↓ 1 callers
Method
Size
()
node/node.schema.gen.go:274
↓ 1 callers
Method
Size
()
node/node.schema.gen.go:373
↓ 1 callers
Method
Size
()
node/node.schema.gen.go:431
↓ 1 callers
Method
Unmarshal
(buf []byte)
node/node.schema.gen.go:335
↓ 1 callers
Method
Unmarshal
(buf []byte)
node/node.schema.gen.go:492
↓ 1 callers
Function
dumpConst
()
node/schema.go:38
↓ 1 callers
Method
fetchRow
(table *page.Table)
planner/select.go:96
↓ 1 callers
Method
internalNodeSeek
(pageIdx uint32, key uint32)
page/table.go:95
↓ 1 callers
Function
isRowFiltered
(where []string, row *node.Row)
planner/select.go:120
Method
Marshal
(buf []byte)
node/node.schema.gen.go:26
Method
Marshal
(buf []byte)
node/node.schema.gen.go:92
Method
Marshal
(buf []byte)
node/node.schema.gen.go:154
Method
Marshal
(buf []byte)
node/node.schema.gen.go:216
Method
Marshal
(buf []byte)
node/node.schema.gen.go:294
Method
Marshal
(buf []byte)
node/node.schema.gen.go:381
Method
Marshal
(buf []byte)
node/node.schema.gen.go:451
Method
Prepare
()
page/table.go:223
Method
Select
()
page/table.go:219
Function
TestDB
(t *testing.T)
db/db_test.go:12
Function
TestParser
(t *testing.T)
parser/parser_test.go:9
Function
TestParserInsert
(t *testing.T)
parser/parser_test.go:58
Function
TestParserSelect
(t *testing.T)
parser/parser_test.go:26
Function
TestPlan_Insert
(t *testing.T)
planner/insert_test.go:13
Function
TestPlan_Insert_multiple
(t *testing.T)
planner/insert_test.go:55
Function
TestPlannerSelect
(t *testing.T)
planner/select_test.go:13
Function
TestSchema
(t *testing.T)
node/schema_test.go:9
Function
TestStructAssignment
(t *testing.T)
node/schema_test.go:26
Function
TestUtils_Length
(t *testing.T)
utils/bytes_test.go:9
Method
Unmarshal
(buf []byte)
node/node.schema.gen.go:65
Method
Unmarshal
(buf []byte)
node/node.schema.gen.go:128
Method
Unmarshal
(buf []byte)
node/node.schema.gen.go:190
Method
Unmarshal
(buf []byte)
node/node.schema.gen.go:252
Method
Unmarshal
(buf []byte)
node/node.schema.gen.go:410
Function
main
()
main.go:19