github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/sql/schemaexpr/doc.go (about)

     1  // Copyright 2020 The Cockroach Authors.
     2  //
     3  // Use of this software is governed by the Business Source License
     4  // included in the file licenses/BSL.txt.
     5  //
     6  // As of the Change Date specified in that file, in accordance with
     7  // the Business Source License, use of this software will be governed
     8  // by the Apache License, Version 2.0, included in the file
     9  // licenses/APL.txt.
    10  
    11  /*
    12  Package schemaexpr provides utilities for dealing with expressions with table
    13  schemas, such as check constraints, computed columns, and partial index
    14  predicates. It provides the following utilities.
    15  
    16  CheckConstraintBuilder
    17  
    18    Validates and builds sql.TableDescriptor_CheckConstraints from
    19    tree.CheckConstraintTableDefs.
    20  
    21  ComputedColumnValidator
    22  
    23    Validates computed columns and can determine if a non-computed column has
    24    dependent computed columns.
    25  
    26  PartialIndexValidator
    27  
    28    Validates partial index predicates and dequalifies the columns referenced.
    29  
    30  DequalifyColumnRefs
    31  
    32    Strips database and table names from qualified columns.
    33  
    34  */
    35  package schemaexpr