MCPcopy
hub / github.com/pingcap/tidb / IsSkipCreateSQL

Method IsSkipCreateSQL

br/pkg/restore/snap_client/client.go:1417–1419  ·  view source on GitHub ↗

IsSkipCreateSQL returns whether we need skip create schema and tables in restore.

()

Source from the content-addressed store, hash-verified

1415
1416// IsSkipCreateSQL returns whether we need skip create schema and tables in restore.
1417func (rc *SnapClient) IsSkipCreateSQL() bool {
1418 return rc.noSchema
1419}
1420
1421// EnsureNoUserTables returns error if target cluster contains user tables.
1422// However, user may have created some db users or made other changes.

Callers 3

CreateDatabasesMethod · 0.95
createTablesMethod · 0.95
createTableMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected