Skip to content

Commit 5093770

Browse files
committed
add day3
1 parent f96bf94 commit 5093770

File tree

9 files changed

+370
-13
lines changed

9 files changed

+370
-13
lines changed

gee-orm/day3-save-query/clause/generator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func _insert(values ...interface{}) (string, []interface{}) {
3535
}
3636

3737
func _values(values ...interface{}) (string, []interface{}) {
38-
// VALUES ($v1), (&v2), ...
38+
// VALUES ($v1), ($v2), ...
3939
var bindStr string
4040
var sql strings.Builder
4141
var vars []interface{}

gee-orm/day4-chain-operation/clause/generator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func _insert(values ...interface{}) (string, []interface{}) {
3838
}
3939

4040
func _values(values ...interface{}) (string, []interface{}) {
41-
// VALUES ($v1), (&v2), ...
41+
// VALUES ($v1), ($v2), ...
4242
var bindStr string
4343
var sql strings.Builder
4444
var vars []interface{}

gee-orm/day5-hooks/clause/generator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func _insert(values ...interface{}) (string, []interface{}) {
3838
}
3939

4040
func _values(values ...interface{}) (string, []interface{}) {
41-
// VALUES ($v1), (&v2), ...
41+
// VALUES ($v1), ($v2), ...
4242
var bindStr string
4343
var sql strings.Builder
4444
var vars []interface{}

gee-orm/day6-transaction/clause/generator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func _insert(values ...interface{}) (string, []interface{}) {
3838
}
3939

4040
func _values(values ...interface{}) (string, []interface{}) {
41-
// VALUES ($v1), (&v2), ...
41+
// VALUES ($v1), ($v2), ...
4242
var bindStr string
4343
var sql strings.Builder
4444
var vars []interface{}

gee-orm/day7-migrate/clause/generator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func _insert(values ...interface{}) (string, []interface{}) {
3838
}
3939

4040
func _values(values ...interface{}) (string, []interface{}) {
41-
// VALUES ($v1), (&v2), ...
41+
// VALUES ($v1), ($v2), ...
4242
var bindStr string
4343
var sql strings.Builder
4444
var vars []interface{}

gee-orm/doc/geeorm-day1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,4 +411,4 @@ func main() {
411411

412412
- [Go 语言简明教程](https://geektutu.com/post/quick-golang.html)
413413
- [Go Test 单元测试简明教程](https://geektutu.com/post/quick-go-test.html)
414-
- [SQLite 常用命令](https://geektutu.com/post/cheat-sheet-sqlite.html)
414+
- [SQLite 常用命令速查表](https://geektutu.com/post/cheat-sheet-sqlite.html)

gee-orm/doc/geeorm-day2.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func TestParse(t *testing.T) {
238238
}
239239
```
240240

241-
## Session
241+
## 3 Session
242242

243243
Session 的核心功能是与数据库进行交互。因此,我们将数据库表的增/删操作实现在子包 session 中。在此之前,Session 的结构需要做一些调整。
244244

@@ -332,7 +332,7 @@ func TestSession_CreateTable(t *testing.T) {
332332
}
333333
```
334334

335-
## Engine
335+
## 4 Engine
336336

337337
因为 Session 构造函数增加了对 dialect 的依赖,Engine 需要作一些细微的调整。
338338

@@ -384,4 +384,4 @@ func (engine *Engine) NewSession() *session.Session {
384384

385385
- [Go 语言简明教程](https://geektutu.com/post/quick-golang.html)
386386
- [Go Test 单元测试简明教程](https://geektutu.com/post/quick-go-test.html)
387-
- [SQLite 常用命令](https://geektutu.com/post/cheat-sheet-sqlite.html)
387+
- [SQLite 常用命令速查表](https://geektutu.com/post/cheat-sheet-sqlite.html)

0 commit comments

Comments
 (0)