primarykey

package
v1.0.1-0...-1811ebb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectHotspot

func DetectHotspot()

DetectHotspot adds hotspot detected suggestion in schema conversion process for database.

func PrimaryKey

func PrimaryKey(w http.ResponseWriter, r *http.Request)

primaryKey updates Primary keys in Spanner Table.

func RemoveInterleave

func RemoveInterleave(conv *internal.Conv, spannertable ddl.CreateTable)

Types

type Column

type Column struct {
	ColumnId string `json:"ColumnId"`
	Desc     bool   `json:"Desc"`
	Order    int    `json:"Order"`
}

Column represents SpannerTables Column.

type PrimaryKeyRequest

type PrimaryKeyRequest struct {
	TableId string   `json:"TableId"`
	Columns []Column `json:"Columns"`
}

PrimaryKeyRequest represents Primary keys API Payload.

type PrimaryKeyResponse

type PrimaryKeyResponse struct {
	TableId string   `json:"TableId"`
	Columns []Column `json:"Columns"`
	Synth   bool     `json:"Synth"`
}

PrimaryKeyResponse represents Primary keys API response. Synth is true is for table Primary Key Id is not present and it is generated.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL