code: func (v Value) EncodeSql(b encoding2.BinaryWriter) {
  	if v.Inner == nil {
  		if _, err := b.Write(nullstr); err != nil {
  			panic(err)
  		}
  	} else {
  		v.Inner.encodeSql(b)
  	}
  }
docs: // EncodeSql encodes the value into an SQL statement. Can be binary.