fix[test]: correct sql delete statement
This commit is contained in:
parent
266d7a4c0f
commit
5ea1a74937
@ -37,7 +37,7 @@ func BenchmarkScan(b *testing.B) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkScanSlice(b *testing.B) {
|
func BenchmarkScanSlice(b *testing.B) {
|
||||||
DB.Exec("delete * from users")
|
DB.Exec("delete from users")
|
||||||
for i := 0; i < 10_000; i++ {
|
for i := 0; i < 10_000; i++ {
|
||||||
user := *GetUser(fmt.Sprintf("scan-%d", i), Config{})
|
user := *GetUser(fmt.Sprintf("scan-%d", i), Config{})
|
||||||
DB.Create(&user)
|
DB.Create(&user)
|
||||||
@ -51,7 +51,7 @@ func BenchmarkScanSlice(b *testing.B) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkScanSlicePointer(b *testing.B) {
|
func BenchmarkScanSlicePointer(b *testing.B) {
|
||||||
DB.Exec("delete * from users")
|
DB.Exec("delete from users")
|
||||||
for i := 0; i < 10_000; i++ {
|
for i := 0; i < 10_000; i++ {
|
||||||
user := *GetUser(fmt.Sprintf("scan-%d", i), Config{})
|
user := *GetUser(fmt.Sprintf("scan-%d", i), Config{})
|
||||||
DB.Create(&user)
|
DB.Create(&user)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user