@@ -26,7 +26,6 @@ faster than other packages according to public benchmarks.
26
26
* [ API reference] ( #api-reference )
27
27
* [ Walking\- through example in Go] ( #walking-through-example-in-go )
28
28
* [ Help] ( #help )
29
- * [ Usage] ( #usage )
30
29
* [ Schema] ( #schema )
31
30
* [ Custom (un)packing and typed selects and function calls] ( #custom-unpacking-and-typed-selects-and-function-calls )
32
31
* [ Options] ( #options )
@@ -175,52 +174,6 @@ To contact `go-tarantool` developers on any problems, create an issue at
175
174
The developers of the [ Tarantool server] ( http://github.com/tarantool/tarantool )
176
175
will also be happy to provide advice or receive feedback.
177
176
178
- ## Usage
179
-
180
- To enable support of UUID in msgpack with [ google/uuid] ( https://github.com/google/uuid ) ,
181
- import tarantool/uuid submodule.
182
- ``` go
183
- package main
184
-
185
- import (
186
- " log"
187
- " time"
188
-
189
- " github.com/tarantool/go-tarantool"
190
- _ " github.com/tarantool/go-tarantool/uuid"
191
- " github.com/google/uuid"
192
- )
193
-
194
- func main () {
195
- server := " 127.0.0.1:3013"
196
- opts := tarantool.Opts {
197
- Timeout: 500 * time.Millisecond ,
198
- Reconnect: 1 * time.Second ,
199
- MaxReconnects: 3 ,
200
- User: " test" ,
201
- Pass: " test" ,
202
- }
203
- client , err := tarantool.Connect (server, opts)
204
- if err != nil {
205
- log.Fatalf (" Failed to connect: %s " , err.Error ())
206
- }
207
-
208
- spaceNo := uint32 (524 )
209
-
210
- id , uuidErr := uuid.Parse (" c8f0fa1f-da29-438c-a040-393f1126ad39" )
211
- if uuidErr != nil {
212
- log.Fatalf (" Failed to prepare uuid: %s " , uuidErr)
213
- }
214
-
215
- resp , err := client.Replace (spaceNo, []interface {}{ id })
216
-
217
- log.Println (" UUID tuple replace" )
218
- log.Println (" Error" , err)
219
- log.Println (" Code" , resp.Code )
220
- log.Println (" Data" , resp.Data )
221
- }
222
- ```
223
-
224
177
## Schema
225
178
226
179
``` go
0 commit comments