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

Function writeIndexSDL

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

Source from the content-addressed store, hash-verified

3339}
3340
3341func writeIndexSDL(out io.Writer, schemaName string, tableName string, index *storepb.IndexMetadata, useOnlyClause bool) error {
3342 return writeIndexInternal(out, schemaName, tableName, index, useOnlyClause, false)
3343}
3344
3345// writeIndexInternal is the core index writing function with options for different modes
3346func writeIndexInternal(out io.Writer, schema string, table string, index *storepb.IndexMetadata, useOnlyClause bool, includeTerminatorAndComment bool) error {

Callers 3

getSDLFormatFunction · 0.85
writeIndexesSDLFunction · 0.85

Calls 1

writeIndexInternalFunction · 0.85

Tested by

no test coverage detected