def __init__(self, fs_table, disks_table): fs_col = PkName("filesystem") fs_col.set_fk(fs_table) diskname_col = PkName("diskname") diskname_col.set_fk(disks_table) columns = [fs_col, diskname_col] Table.__init__(self, "filesystem_disks", columns)
def __init__(self, profiles_table, traits_table): profile_col = PkName("profile") profile_col.set_fk(profiles_table) trait_col = PkName("trait") trait_col.set_fk(traits_table) ord_col = Num("ord") Table.__init__(self, "profile_trait", [profile_col, trait_col, ord_col])
def __init__(self, profiles_table, traits_table): profile_col = PkName('profile') profile_col.set_fk(profiles_table) trait_col = PkName('trait') trait_col.set_fk(traits_table) ord_col = Num('ord') Table.__init__(self, 'profile_trait', [profile_col, trait_col, ord_col])
def __init__(self, suite, traits_table): tablename = ujoin(suite, 'scripts') script_column = PkName('script') script_column.set_fk('scriptnames') sfile_column = Oid('scriptfile') script_columns = [script_column, sfile_column] _TraitRelation.__init__(self, traits_table, tablename, script_columns)
def __init__(self, name, mach_types_table, disks_table): mtype_col = PkName('machine_type') mtype_col.set_fk(mach_types_table) diskname_col = PkName('diskname') diskname_col.set_fk(disks_table) columns = [mtype_col, diskname_col, PkName('device')] Table.__init__(self, name, columns)
def __init__(self, fs_table, disks_table): fs_col = PkName('filesystem') fs_col.set_fk(fs_table) diskname_col = PkName('diskname') diskname_col.set_fk(disks_table) columns = [fs_col, diskname_col] Table.__init__(self, 'filesystem_disks', columns)
def __init__(self, suite, traits_table): tablename = ujoin(suite, "scripts") script_column = PkName("script") script_column.set_fk("scriptnames") sfile_column = Num("scriptfile") sfile_column.set_fk("textfiles") script_columns = [script_column, sfile_column] _TraitRelation.__init__(self, traits_table, tablename, script_columns)
def __init__(self, fs_table, mounts_table): fs_col = PkName('filesystem') fs_col.set_fk(fs_table) mnt_name_col = PkName('mnt_name') mnt_name_col.set_fk(mounts_table) ord_col = Num('ord') partition_column = Num('partition') columns = [fs_col, mnt_name_col, ord_col, partition_column] Table.__init__(self, 'filesystem_mounts', columns)
def __init__(self, profiles_table): profile_col = PkName('profile') profile_col.set_fk(profiles_table) trait_col = PkName('trait') name_col = PkBigname('name') value_col = Text('value') cols = [profile_col, trait_col, name_col, value_col] tablename = ujoin('profile', 'variables') Table.__init__(self, tablename, cols)
def __init__(self, profiles_table): profile_col = PkName("profile") profile_col.set_fk(profiles_table) trait_col = PkName("trait") name_col = PkBigname("name") value_col = Text("value") cols = [profile_col, trait_col, name_col, value_col] tablename = ujoin("profile", "variables") Table.__init__(self, tablename, cols)
def __init__(self, fs_table, mounts_table): fs_col = PkName("filesystem") fs_col.set_fk(fs_table) mnt_name_col = PkName("mnt_name") mnt_name_col.set_fk(mounts_table) ord_col = Num("ord") partition_column = Num("partition") columns = [fs_col, mnt_name_col, ord_col, partition_column] Table.__init__(self, "filesystem_mounts", columns)
def __init__(self, name, mach_types_table): mtype_col = PkName('machine_type') mtype_col.set_fk(mach_types_table) columns = [mtype_col, PkName('module')] Table.__init__(self, name, columns)
def __init__(self, name, mach_types_table): mtype_col = PkName('machine_type') mtype_col.set_fk(mach_types_table) columns = [mtype_col, PkName('module'), Num('ord')] Table.__init__(self, name, columns)
def __init__(self, name, disks_table): diskname_col = PkName('diskname') diskname_col.set_fk(disks_table) columns = [diskname_col] + partition_columns() Table.__init__(self, name, columns)
def __init__(self, mounts_table): mnt_name_col = PkName('mnt_name') mnt_name_col.set_fk(mounts_table) partition_col = Num('partition') columns = [mnt_name_col, partition_col] Table.__init__(self, 'partition_mounts', columns)
def __init__(self, name, mach_types_table): mtype_col = PkName("machine_type") mtype_col.set_fk(mach_types_table) columns = [mtype_col, PkName("module"), Num("ord")] Table.__init__(self, name, columns)
def __init__(self): fcol = PkName('family') fcol.set_fk('families') pcol = PkName('parent') pcol.set_fk('families') Table.__init__(self, 'family_parent', [fcol, pcol])
def __init__(self, suite, traits_table): parent_column = PkName('parent') parent_column.set_fk(traits_table, 'trait') columns = [parent_column] tablename = ujoin(suite, 'trait', 'parent') _TraitRelation.__init__(self, traits_table, tablename, columns)
def __init__(self): pcol = PkName("profile") pcol.set_fk("profiles") fcol = PkName("family") fcol.set_fk("families") Table.__init__(self, "profile_family", [pcol, fcol])
def __init__(self): fcol = PkName("family") fcol.set_fk("families") pcol = PkName("parent") pcol.set_fk("families") Table.__init__(self, "family_parent", [fcol, pcol])
def __init__(self, mounts_table): mnt_name_col = PkName("mnt_name") mnt_name_col.set_fk(mounts_table) partition_col = Num("partition") columns = [mnt_name_col, partition_col] Table.__init__(self, "partition_mounts", columns)
def __init__(self): pcol = PkName('profile') pcol.set_fk('profiles') fcol = PkName('family') fcol.set_fk('families') Table.__init__(self, 'profile_family', [pcol, fcol])
def __init__(self, suite, traits_table): parent_column = PkName("parent") parent_column.set_fk(traits_table, "trait") columns = [parent_column] tablename = ujoin(suite, "trait", "parent") _TraitRelation.__init__(self, traits_table, tablename, columns)