Trees | Indices | Help |
|
---|
|
object --+ | base.DBConnectorComponent --+ | Model
DBConnector component to handle the database model; an instance is
available at master.db.model
.
This class has attributes for each defined table, as well as methods to handle schema migration (using sqlalchemy-migrate). View the source to see the table definitions.
Note that the Buildbot metadata is never bound to an engine, since that might lead users to execute queries outside of the thread pool.
Instance Methods | |||
|
|||
|
|||
Inherited from Inherited from |
Class Variables | |
metadata = MetaData(None)
|
|
buildrequests = Table('buildrequests', MetaData(None), Column( A BuildRequest is a request for a particular build to be performed. |
|
buildrequest_claims = Table('buildrequest_claims', MetaData(No Each row in this table represents a claimed build request, where the claim is made by the object referenced by objectid. |
|
builds = Table('builds', MetaData(None), Column('id', Integer( This table contains basic information about each build. |
|
buildset_properties = Table('buildset_properties', MetaData(No This table contains input properties for buildsets |
|
buildsets = Table('buildsets', MetaData(None), Column('id', In This table represents BuildSets - sets of BuildRequests that share the same original cause and source information. |
|
change_files = Table('change_files', MetaData(None), Column('c Files touched in changes |
|
change_links = Table('change_links', MetaData(None), Column('c Links (URLs) for changes |
|
change_properties = Table('change_properties', MetaData(None), Properties for changes |
|
changes = Table('changes', MetaData(None), Column('changeid', Changes to the source code, produced by ChangeSources |
|
patches = Table('patches', MetaData(None), Column('id', Intege Patches for SourceStamps that were generated through the try mechanism |
|
sourcestamp_changes = Table('sourcestamp_changes', MetaData(No The changes that led up to a particular source stamp. |
|
sourcestamps = Table('sourcestamps', MetaData(None), Column('i A sourcestamp identifies a particular instance of the source code. |
|
scheduler_changes = Table('scheduler_changes', MetaData(None), This table references "classified" changes that have not yet been "processed". |
|
scheduler_upstream_buildsets = Table('scheduler_upstream_build This table references buildsets in which a particular scheduler is interested. |
|
schedulers = Table('schedulers', MetaData(None), Column('sched This table records the "state" for each scheduler. |
|
objects = Table('objects', MetaData(None), Column('id', Intege This table uniquely identifies objects that need to maintain state across invocations. |
|
object_state = Table('object_state', MetaData(None), Column('o This table stores key/value pairs for objects, where the key is a string and the value is a JSON string. |
|
repo_path =
path to the SQLAlchemy-Migrate 'repository' |
|
Inherited from |
Instance Variables | |
Inherited from |
Properties | |
Inherited from |
Class Variable Details |
buildrequestsA BuildRequest is a request for a particular build to be performed. Each BuildRequest is a part of a BuildSet. BuildRequests are claimed by masters, to avoid multiple masters running the same build.
|
buildrequest_claimsEach row in this table represents a claimed build request, where the claim is made by the object referenced by objectid.
|
buildsThis table contains basic information about each build. Note that most data about a build is still stored in on-disk pickles.
|
buildset_propertiesThis table contains input properties for buildsets
|
buildsetsThis table represents BuildSets - sets of BuildRequests that share the same original cause and source information.
|
change_filesFiles touched in changes
|
change_linksLinks (URLs) for changes
|
change_propertiesProperties for changes
|
changesChanges to the source code, produced by ChangeSources
|
patchesPatches for SourceStamps that were generated through the try mechanism
|
sourcestamp_changesThe changes that led up to a particular source stamp.
|
sourcestampsA sourcestamp identifies a particular instance of the source code. Ideally, this would always be absolute, but in practice source stamps can also mean "latest" (when revision is NULL), which is of course a time-dependent definition.
|
scheduler_changesThis table references "classified" changes that have not yet been "processed". That is, the scheduler has looked at these changes and determined that something should be done, but that hasn't happened yet. Rows are deleted from this table as soon as the scheduler is done with the change.
|
scheduler_upstream_buildsetsThis table references buildsets in which a particular scheduler is interested. On every run, a scheduler checks its upstream buildsets for completion and reacts accordingly. Records are never deleted from this table, but active is set to 0 when the record is no longer necessary.
|
schedulersThis table records the "state" for each scheduler. This state is, at least, the last change that was analyzed, but is stored in an opaque JSON object. Note that schedulers are never deleted.
|
objectsThis table uniquely identifies objects that need to maintain state across invocations.
|
object_stateThis table stores key/value pairs for objects, where the key is a string and the value is a JSON string.
|
repo_pathpath to the SQLAlchemy-Migrate 'repository'
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Jul 17 13:45:20 2011 | http://epydoc.sourceforge.net |