-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtestdata.go
58 lines (50 loc) · 1.5 KB
/
testdata.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package sqlinsert
import "time"
var valuesTokenTypes = []TokenType{
QuestionMarkTokenType,
AtColumnNameTokenType,
OrdinalNumberTokenType,
ColonTokenType,
}
type candyInsert struct {
Id string `col:"id"`
Name string `col:"candy_name"`
FormFactor string `col:"form_factor"`
Description string `col:"description"`
Mfr string `col:"manufacturer"`
Weight float64 `col:"weight_grams"`
Timestamp time.Time `col:"ts"`
}
var tbl = `candy`
var recValue = candyInsert{
Id: `c0600afd-78a7-4a1a-87c5-1bc48cafd14e`,
Name: `Gougat`,
FormFactor: `Package`,
Description: `tastes like gopher feed`,
Mfr: `Gouggle`,
Weight: 1.16180,
Timestamp: time.Time{},
}
var recPointer = &candyInsert{
Id: `c0600afd-78a7-4a1a-87c5-1bc48cafd14e`,
Name: `Gougat`,
FormFactor: `Package`,
Description: `tastes like gopher feed`,
Mfr: `Gouggle`,
Weight: 1.16180,
Timestamp: time.Time{},
}
var fiveRecsValues = []candyInsert{
{`a`, `a`, `a`, `a`, `a`, 1.1, time.Time{}},
{`b`, `b`, `b`, `b`, `b`, 2.1, time.Time{}},
{`c`, `c`, `c`, `c`, `c`, 3.1, time.Time{}},
{`d`, `d`, `d`, `d`, `d`, 4.1, time.Time{}},
{`e`, `e`, `e`, `e`, `e`, 5.1, time.Time{}},
}
var fiveRecsPointers = []*candyInsert{
{`a`, `a`, `a`, `a`, `a`, 1.1, time.Time{}},
{`b`, `b`, `b`, `b`, `b`, 2.1, time.Time{}},
{`c`, `c`, `c`, `c`, `c`, 3.1, time.Time{}},
{`d`, `d`, `d`, `d`, `d`, 4.1, time.Time{}},
{`e`, `e`, `e`, `e`, `e`, 5.1, time.Time{}},
}