turbot / pipe-fittings

Shared components for use across pipe projects.
https://github.com/turbot
GNU Affero General Public License v3.0
12 stars 3 forks source link

Add UniqueNameGenerator functions to generate random unique column names #417

Closed kaidaguerre closed 3 months ago

kaidaguerre commented 3 months ago

// GetUniqueName returns a unique name based on the input name // If the input name is not unique, a random lowercase string is appended to the name // This is used in steampipe and powerpipe to ensure unique column names in JSON output // when same columns are requested.