Skip to content

Commit

Permalink
refactor: removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-syed committed Mar 7, 2024
1 parent 4b57659 commit c54adcb
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions go/adbc/driver/snowflake/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -908,28 +908,6 @@ func getQualifiedConstraint(dbName string, schema string, tableName string, cons
}
}

// func getConstraintSchemaFromTableConstraint(tableConstraint TableConstraint) internal.ConstraintSchema {
// var constraintSchema internal.ConstraintSchema
// constraintName :=
// usageSchema := getUsageSchemaFromTableConstraint(tableConstraint)
// if tableConstraint.fkConstraintName.Valid {
// usageSchema := getUsageSchemaFromTableConstraint(tableConstraint)
// constraintSchema = internal.ConstraintSchema{
// ConstraintName: tableConstraint.fkConstraintName.String,
// ConstraintType: tableConstraint.constraintType,
// ConstraintColumnNames: []string{tableConstraint.fkColName.String},
// ConstraintColumnUsages: []internal.UsageSchema{usageSchema},
// }
// } else {
// constraintSchema = internal.ConstraintSchema{
// ConstraintName: tableConstraint.constraintName,
// ConstraintType: tableConstraint.constraintType,
// ConstraintColumnNames: []string{tableConstraint.colName},
// }
// }
// return constraintSchema
// }

func getConstraintSchemaFromTableConstraint(tableConstraint TableConstraint) internal.ConstraintSchema {
var constraintSchema internal.ConstraintSchema
constraintSchema.ConstraintType = tableConstraint.constraintType
Expand Down

0 comments on commit c54adcb

Please sign in to comment.