MCPcopy Create free account
hub / github.com/bytebase/bytebase / writeIndex

Function writeIndex

backend/plugin/schema/pg/get_database_definition.go:2009–2011  ·  view source on GitHub ↗
(out io.Writer, schema string, table string, index *storepb.IndexMetadata, useOnlyClause bool)

Source from the content-addressed store, hash-verified

2007}
2008
2009func writeIndex(out io.Writer, schema string, table string, index *storepb.IndexMetadata, useOnlyClause bool) error {
2010 return writeIndexInternal(out, schema, table, index, useOnlyClause, true)
2011}
2012
2013func writeIndexKeyList(out io.Writer, index *storepb.IndexMetadata) error {
2014 if _, err := io.WriteString(out, `(`); err != nil {

Callers 4

writeCreateRegularIndexFunction · 0.70
writeMaterializedViewFunction · 0.70
writeTableFunction · 0.70
writePartitionIndexFunction · 0.70

Calls 1

writeIndexInternalFunction · 0.85

Tested by

no test coverage detected