func (m *SchemaDb) Open(schemaObjectName string) (schema.Conn, error) {

	tbl, err := m.Table(schemaObjectName)
	if err == nil && tbl != nil {

		switch schemaObjectName {
		case "session_variables", "global_variables":
			return &SchemaSource{db: m, tbl: tbl, session: true}, nil
		case "engines", "procedures", "functions", "indexes":
			return &SchemaSource{db: m, tbl: tbl, rows: nil}, nil
		default:
			return &SchemaSource{db: m, tbl: tbl, rows: tbl.AsRows()}, nil
		}

	}
	return nil, schema.ErrNotFound
}
// Open Create a SchemaSource specific to schema object (table, database)
Open Create a SchemaSource specific to schema object (table, database)
// Open Create a SchemaSource specific to schema object ( table database )
func (m *SchemaDb) Open(schemaObjectName string) (schema.Conn, error) {
	tbl, err := m.Table(schemaObjectName)
	if err == nil && tbl != nil {
		switch schemaObjectName {
		case "session_variables", "global_variables":
			return &SchemaSource{db: m, tbl: tbl, session: true}, nil
		case "engines", "procedures", "functions", "indexes":
			return &SchemaSource{db: m, tbl: tbl, rows: nil}, nil
		default:
			return &SchemaSource{db: m, tbl: tbl, rows: tbl.AsRows()}, nil
		}
	}
	return nil, schema.ErrNotFound
}
func ( m * SchemaDb ) Open ( schemaObjectName string ) ( schema . Conn , error ) { tbl , err := m . Table ( schemaObjectName ) if err == nil && tbl != nil { switch schemaObjectName { case " " , " " : return & SchemaSource { db : m , tbl : tbl , session : true } , nil case " " , " " , " " , " " : return & SchemaSource { db : m , tbl : tbl , rows : nil } , nil default : return & SchemaSource { db : m , tbl : tbl , rows : tbl . AsRows ( ) } , nil } } return nil , schema . ErrNotFound }
Open Create a SchemaSource specific to schema object (table, database)
Open Create a SchemaSource specific to schema object ( table database )