• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..04-Jan-2021-

README.mdH A D04-Jan-20211.1 KiB4837

api.goH A D04-Jan-2021960 1814

client.goH A D04-Jan-2021600 2618

delete.goH A D04-Jan-20213.7 KiB10073

get.goH A D04-Jan-20213.5 KiB10983

insert.goH A D04-Jan-20214.1 KiB11380

insert_or_merge.goH A D04-Jan-20214.4 KiB10978

insert_or_replace.goH A D04-Jan-20214.4 KiB10978

lifecycle_test.goH A D04-Jan-20214.1 KiB138119

models.goH A D04-Jan-2021198 107

query.goH A D04-Jan-20215.1 KiB163116

resource_id.goH A D04-Jan-20212.7 KiB9268

resource_id_test.goH A D04-Jan-20212.5 KiB8478

version.goH A D04-Jan-2021310 159

README.md

1## Table Storage Entities SDK for API version 2019-12-12
2
3This package allows you to interact with the Entities Table Storage API
4
5### Supported Authorizers
6
7* SharedKeyLite (Table)
8
9### Example Usage
10
11```go
12package main
13
14import (
15	"context"
16	"fmt"
17	"time"
18
19	"github.com/Azure/go-autorest/autorest"
20	"github.com/tombuildsstuff/giovanni/storage/2019-12-12/table/entities"
21)
22
23func Example() error {
24	accountName := "storageaccount1"
25    storageAccountKey := "ABC123...."
26    tableName := "mytable"
27
28    storageAuth := autorest.NewSharedKeyLiteTableAuthorizer(accountName, storageAccountKey)
29    entitiesClient := entities.New()
30    entitiesClient.Client.Authorizer = storageAuth
31
32    ctx := context.TODO()
33    input := entities.InsertEntityInput{
34    	PartitionKey: "abc",
35    	RowKey: "123",
36    	MetaDataLevel: entities.NoMetaData,
37    	Entity: map[string]interface{}{
38    	    "title": "Don't Kill My Vibe",
39    	    "artist": "Sigrid",
40    	},
41    }
42    if _, err := entitiesClient.Insert(ctx, accountName, tableName, input); err != nil {
43        return fmt.Errorf("Error creating Entity: %s", err)
44    }
45
46    return nil
47}
48```