MCPcopy Index your code
hub / github.com/github/gh-ost / BuildUniqueKeyMaxValuesPreparedQuery

Function BuildUniqueKeyMaxValuesPreparedQuery

go/sql/builder.go:755–757  ·  view source on GitHub ↗
(databaseName, tableName string, uniqueKey *UniqueKey)

Source from the content-addressed store, hash-verified

753}
754
755func BuildUniqueKeyMaxValuesPreparedQuery(databaseName, tableName string, uniqueKey *UniqueKey) (string, error) {
756 return buildUniqueKeyMinMaxValuesPreparedQuery(databaseName, tableName, uniqueKey, "desc")
757}
758
759func buildUniqueKeyMinMaxValuesPreparedQuery(databaseName, tableName string, uniqueKey *UniqueKey, order string) (string, error) {
760 if uniqueKey.Columns.Len() == 0 {

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…