28 from collections import OrderedDict |
28 from collections import OrderedDict |
29 |
29 |
30 |
30 |
31 class Column: |
31 class Column: |
32 def __init__(self, browser, table, |
32 def __init__(self, browser, table, |
33 name, type, notnull, hasdefault, default, description): |
33 name, type, notnull, hasdefault, default, description): |
34 self.browser = browser # Browser instance |
34 self.browser = browser # Browser instance |
35 self.table = table # Table instance |
35 self.table = table # Table instance |
36 self.name = name |
36 self.name = name |
37 self.type = type |
37 self.type = type |
38 self.notnull = notnull |
38 self.notnull = notnull |
52 self.definition = definition |
52 self.definition = definition |
53 |
53 |
54 |
54 |
55 class Index: |
55 class Index: |
56 def __init__(self, browser, table, |
56 def __init__(self, browser, table, |
57 name, primary, unique, clustered, valid, definition): |
57 name, primary, unique, clustered, valid, definition, |
|
58 columns): |
58 self.browser = browser |
59 self.browser = browser |
59 self.table = table |
60 self.table = table |
60 self.name = name |
61 self.name = name |
61 self.primary = primary |
62 self.primary = primary |
62 self.unique = unique |
63 self.unique = unique |
63 self.clustered = clustered |
64 self.clustered = clustered |
64 self.valid = valid |
65 self.valid = valid |
65 self.definition = definition |
66 self.definition = definition |
|
67 self.columns = columns |
66 |
68 |
67 |
69 |
68 class Table: |
70 class Table: |
69 def __init__(self, browser, schema, name, owner, size, description, options): |
71 def __init__(self, browser, schema, name, owner, size, description, options): |
70 self._columns = None |
72 self._columns = None |