// NewDatabase returns a database object
NewDatabase returns a database object
// NewDatabase returns a database object
func NewDatabase(opts ...MysqlDBOption) *mysqldatabase.Database {
	name := fmt.Sprintf("db-%d", rand.Int()) 
	db := mysqldatabase.Wrap(&mysqlv1alpha1.MysqlDatabase{
		ObjectMeta: metav1.ObjectMeta{
			Name:      name,
			Namespace: "default",
		},
		Spec: mysqlv1alpha1.MysqlDatabaseSpec{
			ClusterRef: mysqlv1alpha1.ClusterReference{
				LocalObjectReference: corev1.LocalObjectReference{Name: "does-not-exists"},
				Namespace:            "default",
			},
			Database: name,
		},
	})
	for _, opt := range opts {
		Expect(opt(db)).To(Succeed())
	}
	return db
}
func NewDatabase ( opts ... MysqlDBOption ) * mysqldatabase . Database { name := fmt . Sprintf ( " " , rand . Int ( ) ) db := mysqldatabase . Wrap ( & mysqlv1alpha1 . MysqlDatabase { ObjectMeta : metav1 . ObjectMeta { Name : name , Namespace : " " , } , Spec : mysqlv1alpha1 . MysqlDatabaseSpec { ClusterRef : mysqlv1alpha1 . ClusterReference { LocalObjectReference : corev1 . LocalObjectReference { Name : " " } , Namespace : " " , } , Database : name , } , } ) for _ , opt := range opts { Expect ( opt ( db ) ) . To ( Succeed ( ) ) } return db }
NewDatabase returns a database object
NewDatabase returns a database object
// nolint: gosec