func NewDatabase(name string) *Database {
	return &Database{
		BaseDatabase: NewViewlessDatabase(name),
		views:        make(map[string]string),
	}
}
NewDatabase creates a new database with the given name.
package memory
import (
	"strings"
	"github.com/dolthub/go-mysql-server/sql"
)
type Database struct {
	*BaseDatabase
	views map[string]string
}
type MemoryDatabase interface {
	sql.Database
	AddTable(name string, t sql.Table)
}
var _ sql.Database = (*Database)(nil)
var _ sql.TableCreator = (*Database)(nil)
var _ sql.TableDropper = (*Database)(nil)
var _ sql.TableRenamer = (*Database)(nil)
var _ sql.TriggerDatabase = (*Database)(nil)
var _ sql.StoredProcedureDatabase = (*Database)(nil)
var _ sql.ViewDatabase = (*Database)(nil)
type BaseDatabase struct {
	name              string
	tables            map[string]sql.Table
	triggers          []sql.TriggerDefinition
	storedProcedures  []sql.StoredProcedureDetails
	primaryKeyIndexes bool
}
var _ MemoryDatabase = (*Database)(nil)
var _ MemoryDatabase = (*BaseDatabase)(nil)