mirror of
https://github.com/restic/restic.git
synced 2026-08-02 04:02:16 +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:
+16
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user