Skip to content

Commit

Permalink
encoding uses #b64
Browse files Browse the repository at this point in the history
  • Loading branch information
brennanjl committed May 24, 2024
1 parent bf31ea9 commit d6408ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/kwil-cli/cmds/database/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ func decodeMany(inputs []string) ([][]byte, bool) {
b64Ok := true
for _, s := range inputs {
// in the CLI, if data has suffix ;b64, it is base64 encoded
if strings.HasSuffix(s, "[b64]") {
s = strings.TrimSuffix(s, "[b64]")
if strings.HasSuffix(s, "#b64") {
s = strings.TrimSuffix(s, "#b64")
} else {
b64Ok = false
break
Expand Down
2 changes: 1 addition & 1 deletion test/driver/cli_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func (d *KwilCliDriver) prepareCliActionParams(dbid string, actionName string, a
stringify := func(v any) string {
switch v := v.(type) {
case []byte:
return base64.StdEncoding.EncodeToString(v) + "[b64]"
return base64.StdEncoding.EncodeToString(v) + "#b64"
case fmt.Stringer:
return v.String()
default:
Expand Down

0 comments on commit d6408ac

Please sign in to comment.