github.com/octohelm/storage@v0.0.0-20240516030302-1ac2cc1ea347/internal/testutil/catalog.go (about)

     1  package testutil
     2  
     3  import "github.com/octohelm/storage/pkg/sqlbuilder"
     4  
     5  func CatalogFrom(models ...sqlbuilder.Model) *sqlbuilder.Tables {
     6  	tables := &sqlbuilder.Tables{}
     7  	for i := range models {
     8  		tables.Add(sqlbuilder.TableFromModel(models[i]))
     9  	}
    10  	return tables
    11  }