Skip to content

Commit

Permalink
InsertBuilder, UpsertBuilder support write []byte (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
sim-wangyan committed Jul 10, 2024
1 parent 879d046 commit 2bd0377
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
25 changes: 0 additions & 25 deletions bytes_support.go

This file was deleted.

11 changes: 2 additions & 9 deletions sqlxb_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package sqlxb

import (
"encoding/json"
"fmt"
"strings"
"testing"
Expand All @@ -26,16 +25,9 @@ func TestInsert(t *testing.T) {

t.Run("insert", func(t *testing.T) {

str := "eHh4eHh4eHh4eHg="
buffer, _ := json.Marshal(str)
fmt.Println("-------------")
fmt.Println(string(buffer))
fmt.Println("+++++++++++++")

mm := make(map[string]string)
mm["xxxx"] = "zzzzz"
body := []byte("xxxxxxxxxxx")
fmt.Println(string(body))

var po Pet
sql, vs := Of(&po).
Expand Down Expand Up @@ -72,7 +64,8 @@ func TestUpdate(t *testing.T) {
b.Set("one", Cat{
Id: 2,
M: mm,
})
}).
Set("body", []byte("yyyyyyyyyyyy"))
}).
Eq("id", 2).
Build().
Expand Down

0 comments on commit 2bd0377

Please sign in to comment.