mirror of
https://github.com/restic/restic.git
synced 2025-12-08 06:09:56 +00:00
Update dependencies
Among others, this updates minio-go, so that the new "eu-west-3" zone for AWS is supported.
This commit is contained in:
parent
b63de7c798
commit
2b39f9f4b2
3435 changed files with 1318042 additions and 315692 deletions
16
vendor/cloud.google.com/go/spanner/examples_test.go
generated
vendored
16
vendor/cloud.google.com/go/spanner/examples_test.go
generated
vendored
|
|
@ -427,6 +427,22 @@ func ExampleReadOnlyTransaction_ReadUsingIndex() {
|
|||
_ = iter // TODO: iterate using Next or Do.
|
||||
}
|
||||
|
||||
func ExampleReadOnlyTransaction_ReadWithOptions() {
|
||||
ctx := context.Background()
|
||||
client, err := spanner.NewClient(ctx, myDB)
|
||||
if err != nil {
|
||||
// TODO: Handle error.
|
||||
}
|
||||
// Use an index, and limit to 100 rows at most.
|
||||
iter := client.Single().ReadWithOptions(ctx, "Users",
|
||||
spanner.KeySets(spanner.Key{"a@example.com"}, spanner.Key{"b@example.com"}),
|
||||
[]string{"name", "email"}, &spanner.ReadOptions{
|
||||
Index: "UsersByEmail",
|
||||
Limit: 100,
|
||||
})
|
||||
_ = iter // TODO: iterate using Next or Do.
|
||||
}
|
||||
|
||||
func ExampleReadOnlyTransaction_ReadRow() {
|
||||
ctx := context.Background()
|
||||
client, err := spanner.NewClient(ctx, myDB)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue