Skip to content

Commit

Permalink
add performance_schema to standard database exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
abg committed Nov 6, 2010
1 parent 0bbb22a commit a8f6f5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/holland.lib.mysql/holland/lib/mysql/schema/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ class DatabaseIterator(object):
client must have a show_databases() method
"""
STD_EXCLUSIONS = (
'information_schema',
'performance_schema',
'lost+found',
)
def __init__(self, client):
"""Construct a new iterator to produce `Database` instances for the
database requested by the __call__ method.
Expand All @@ -256,7 +261,7 @@ def __init__(self, client):

def __call__(self):
for name in self.client.show_databases():
if name not in ('information_schema', 'lost+found'):
if name not in self.STD_EXCLUSIONS:
yield Database(name)


Expand Down

0 comments on commit a8f6f5d

Please sign in to comment.