Package buildbot :: Package db :: Module model :: Class Model
[frames] | no frames]

Class Model

source code

               object --+    
                        |    
base.DBConnectorComponent --+
                            |
                           Model

Instance Methods
 
is_current(self) source code
 
upgrade(self) source code

Inherited from base.DBConnectorComponent: __init__, check_length

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  metadata = MetaData(bind=None)
  buildrequests = Table('buildrequests', MetaData(bind=None), Co...
  buildrequest_claims = Table('buildrequest_claims', MetaData(bi...
  builds = Table('builds', MetaData(bind=None), Column('id', Int...
  buildset_properties = Table('buildset_properties', MetaData(bi...
  buildsets = Table('buildsets', MetaData(bind=None), Column('id...
  change_files = Table('change_files', MetaData(bind=None), Colu...
  change_properties = Table('change_properties', MetaData(bind=N...
  change_users = Table('change_users', MetaData(bind=None), Colu...
  changes = Table('changes', MetaData(bind=None), Column('change...
  patches = Table('patches', MetaData(bind=None), Column('id', I...
  sourcestamp_changes = Table('sourcestamp_changes', MetaData(bi...
  sourcestampsets = Table('sourcestampsets', MetaData(bind=None)...
  sourcestamps = Table('sourcestamps', MetaData(bind=None), Colu...
  scheduler_changes = Table('scheduler_changes', MetaData(bind=N...
  objects = Table('objects', MetaData(bind=None), Column('id', I...
  object_state = Table('object_state', MetaData(bind=None), Colu...
  users = Table('users', MetaData(bind=None), Column('uid', Inte...
  users_info = Table('users_info', MetaData(bind=None), Column('...
  implied_indexes = [('change_users', {'column_names': ['uid'], ...
  repo_path = '/home/dustin/code/buildbot/t/buildbot/master/buil...

Inherited from base.DBConnectorComponent: connector

Properties

Inherited from object: __class__

Class Variable Details

buildrequests

Value:
Table('buildrequests', MetaData(bind=None), Column('id', Integer(), ta\
ble=<buildrequests>, primary_key=True, nullable=False), Column('builds\
etid', Integer(), ForeignKey('buildsets.id'), table=<buildrequests>, n\
ullable=False), Column('buildername', String(length=256), table=<build\
requests>, nullable=False), Column('priority', Integer(), table=<build\
requests>, nullable=False, server_default=DefaultClause('0', for_updat\
e=False)), Column('complete', Integer(), table=<buildrequests>, server\
_default=DefaultClause('0', for_update=False)), Column('results', Smal\
...

buildrequest_claims

Value:
Table('buildrequest_claims', MetaData(bind=None), Column('brid', Integ\
er(), ForeignKey('buildrequests.id'), table=<buildrequest_claims>), Co\
lumn('objectid', Integer(), ForeignKey('objects.id'), table=<buildrequ\
est_claims>), Column('claimed_at', Integer(), table=<buildrequest_clai\
ms>, nullable=False), schema=None)

builds

Value:
Table('builds', MetaData(bind=None), Column('id', Integer(), table=<bu\
ilds>, primary_key=True, nullable=False), Column('number', Integer(), \
table=<builds>, nullable=False), Column('brid', Integer(), ForeignKey(\
'buildrequests.id'), table=<builds>, nullable=False), Column('start_ti\
me', Integer(), table=<builds>, nullable=False), Column('finish_time',\
 Integer(), table=<builds>), schema=None)

buildset_properties

Value:
Table('buildset_properties', MetaData(bind=None), Column('buildsetid',\
 Integer(), ForeignKey('buildsets.id'), table=<buildset_properties>, n\
ullable=False), Column('property_name', String(length=256), table=<bui\
ldset_properties>, nullable=False), Column('property_value', String(le\
ngth=1024), table=<buildset_properties>, nullable=False), schema=None)

buildsets

Value:
Table('buildsets', MetaData(bind=None), Column('id', Integer(), table=\
<buildsets>, primary_key=True, nullable=False), Column('external_idstr\
ing', String(length=256), table=<buildsets>), Column('reason', String(\
length=256), table=<buildsets>), Column('submitted_at', Integer(), tab\
le=<buildsets>, nullable=False), Column('complete', SmallInteger(), ta\
ble=<buildsets>, nullable=False, server_default=DefaultClause('0', for\
_update=False)), Column('complete_at', Integer(), table=<buildsets>), \
Column('results', SmallInteger(), table=<buildsets>), Column('sourcest\
...

change_files

Value:
Table('change_files', MetaData(bind=None), Column('changeid', Integer(\
), ForeignKey('changes.changeid'), table=<change_files>, nullable=Fals\
e), Column('filename', String(length=1024), table=<change_files>, null\
able=False), schema=None)

change_properties

Value:
Table('change_properties', MetaData(bind=None), Column('changeid', Int\
eger(), ForeignKey('changes.changeid'), table=<change_properties>, nul\
lable=False), Column('property_name', String(length=256), table=<chang\
e_properties>, nullable=False), Column('property_value', String(length\
=1024), table=<change_properties>, nullable=False), schema=None)

change_users

Value:
Table('change_users', MetaData(bind=None), Column('changeid', Integer(\
), ForeignKey('changes.changeid'), table=<change_users>, nullable=Fals\
e), Column('uid', Integer(), ForeignKey('users.uid'), table=<change_us\
ers>, nullable=False), schema=None)

changes

Value:
Table('changes', MetaData(bind=None), Column('changeid', Integer(), ta\
ble=<changes>, primary_key=True, nullable=False), Column('author', Str\
ing(length=256), table=<changes>, nullable=False), Column('comments', \
String(length=1024), table=<changes>, nullable=False), Column('is_dir'\
, SmallInteger(), table=<changes>, nullable=False), Column('branch', S\
tring(length=256), table=<changes>), Column('revision', String(length=\
256), table=<changes>), Column('revlink', String(length=256), table=<c\
hanges>), Column('when_timestamp', Integer(), table=<changes>, nullabl\
...

patches

Value:
Table('patches', MetaData(bind=None), Column('id', Integer(), table=<p\
atches>, primary_key=True, nullable=False), Column('patchlevel', Integ\
er(), table=<patches>, nullable=False), Column('patch_base64', Text(),\
 table=<patches>, nullable=False), Column('patch_author', Text(), tabl\
e=<patches>, nullable=False), Column('patch_comment', Text(), table=<p\
atches>, nullable=False), Column('subdir', Text(), table=<patches>), s\
chema=None)

sourcestamp_changes

Value:
Table('sourcestamp_changes', MetaData(bind=None), Column('sourcestampi\
d', Integer(), ForeignKey('sourcestamps.id'), table=<sourcestamp_chang\
es>, nullable=False), Column('changeid', Integer(), ForeignKey('change\
s.changeid'), table=<sourcestamp_changes>, nullable=False), schema=Non\
e)

sourcestampsets

Value:
Table('sourcestampsets', MetaData(bind=None), Column('id', Integer(), \
table=<sourcestampsets>, primary_key=True, nullable=False), schema=Non\
e)

sourcestamps

Value:
Table('sourcestamps', MetaData(bind=None), Column('id', Integer(), tab\
le=<sourcestamps>, primary_key=True, nullable=False), Column('branch',\
 String(length=256), table=<sourcestamps>), Column('revision', String(\
length=256), table=<sourcestamps>), Column('patchid', Integer(), Forei\
gnKey('patches.id'), table=<sourcestamps>), Column('repository', Strin\
g(length=512), table=<sourcestamps>, nullable=False, server_default=De\
faultClause('', for_update=False)), Column('project', String(length=51\
2), table=<sourcestamps>, nullable=False, server_default=DefaultClause\
...

scheduler_changes

Value:
Table('scheduler_changes', MetaData(bind=None), Column('objectid', Int\
eger(), ForeignKey('objects.id'), table=<scheduler_changes>), Column('\
changeid', Integer(), ForeignKey('changes.changeid'), table=<scheduler\
_changes>), Column('important', Integer(), table=<scheduler_changes>),\
 schema=None)

objects

Value:
Table('objects', MetaData(bind=None), Column('id', Integer(), table=<o\
bjects>, primary_key=True, nullable=False), Column('name', String(leng\
th=128), table=<objects>, nullable=False), Column('class_name', String\
(length=128), table=<objects>, nullable=False), schema=None)

object_state

Value:
Table('object_state', MetaData(bind=None), Column('objectid', Integer(\
), ForeignKey('objects.id'), table=<object_state>, nullable=False), Co\
lumn('name', String(length=256), table=<object_state>, nullable=False)\
, Column('value_json', Text(), table=<object_state>, nullable=False), \
schema=None)

users

Value:
Table('users', MetaData(bind=None), Column('uid', Integer(), table=<us\
ers>, primary_key=True, nullable=False), Column('identifier', String(l\
ength=256), table=<users>, nullable=False), Column('bb_username', Stri\
ng(length=128), table=<users>), Column('bb_password', String(length=12\
8), table=<users>), schema=None)

users_info

Value:
Table('users_info', MetaData(bind=None), Column('uid', Integer(), Fore\
ignKey('users.uid'), table=<users_info>, nullable=False), Column('attr\
_type', String(length=128), table=<users_info>, nullable=False), Colum\
n('attr_data', String(length=128), table=<users_info>, nullable=False)\
, schema=None)

implied_indexes

Value:
[('change_users',
  {'column_names': ['uid'], 'name': 'uid', 'unique': False}),
 ('sourcestamps',
  {'column_names': ['patchid'], 'name': 'patchid', 'unique': False}),
 ('sourcestamp_changes',
  {'column_names': ['changeid'], 'name': 'changeid', 'unique': False})\
,
 ('buildsets', {'column_names': ['sourcestampsetid'], 'name': 'buildse\
...

repo_path

Value:
'/home/dustin/code/buildbot/t/buildbot/master/buildbot/db/migrate'