Go için Tablestore SDK'yı kullanarak bir veri tablosunun arama dizinlerini listeleyin.
Önkoşullar
Tablestore Go SDK öğesini yükleyin ve bir istemci başlatın.
Açıklama
Bir veri tablosunun arama dizini adlarını almak için ListSearchIndex yöntemini çağırın.
func (client *tablestore.TableStoreClient) ListSearchIndex(request *tablestore.ListSearchIndexRequest) (*tablestore.ListSearchIndexResponse, error)
response, err := client.ListSearchIndex(&tablestore.ListSearchIndexRequest{
TableName: "example_table",
})
if err != nil {
log.Fatal(err)
}
for _, index := range response.IndexInfo {
fmt.Println(index.TableName, index.IndexName)
}
Parametreler
|
|
|
|
|
|
|
|
Yanıt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|