()
| 25 | ) |
| 26 | |
| 27 | func ExampleOpenCollection() { |
| 28 | // PRAGMA: This example is used on gocloud.dev; PRAGMA comments adjust how it is shown and can be ignored. |
| 29 | cfg, err := config.LoadDefaultConfig(context.Background()) |
| 30 | if err != nil { |
| 31 | log.Fatal(err) |
| 32 | } |
| 33 | coll, err := awsdynamodb.OpenCollection( |
| 34 | dynamodb.NewFromConfig(cfg), "docstore-test", "partitionKeyField", "", nil) |
| 35 | if err != nil { |
| 36 | log.Fatal(err) |
| 37 | } |
| 38 | defer coll.Close() |
| 39 | } |
| 40 | |
| 41 | func Example_openCollectionFromURL() { |
| 42 | // PRAGMA: This example is used on gocloud.dev; PRAGMA comments adjust how it is shown and can be ignored. |
nothing calls this directly
no test coverage detected