equal
deleted
inserted
replaced
216 """ |
216 """ |
217 quiet = os.environ.get('APYCOT_ROOT') |
217 quiet = os.environ.get('APYCOT_ROOT') |
218 if not quiet: |
218 if not quiet: |
219 _title = '-> storing the schema in the database ' |
219 _title = '-> storing the schema in the database ' |
220 print _title, |
220 print _title, |
221 execute = cursor.unsafe_execute |
221 execute = cursor.execute |
222 eschemas = schema.entities() |
222 eschemas = schema.entities() |
223 if not quiet: |
223 if not quiet: |
224 pb_size = (len(eschemas + schema.relations()) |
224 pb_size = (len(eschemas + schema.relations()) |
225 + len(CONSTRAINTS) |
225 + len(CONSTRAINTS) |
226 + len([x for x in eschemas if x.specializes()])) |
226 + len([x for x in eschemas if x.specializes()])) |