Home | Trees | Indices | Help |
|
---|
|
object --+ | base.structure.StructureBase --+ | object --+ | | | base.common.Parser --+ | base.structure.ParseableStructure --+ | base.structure.Structure --+ | object --+ | | | base.meta.MetaMixin --+ | | | base.meta.ComputedMetaMixin --+ | object --+ | | | common.PrivilegesMixin --+ | object --+ | | | common.IVOMetaMixin --+ | object --+ | | | base.macros.MacroPackage --+ | | | base.macros.StandardMacroMixin --+ | object --+ | | | PublishableDataMixin --+ | TableDef
A definition of a table, both on-disk and internal. Some attributes are ignored for in-memory tables, e.g., roles or adql. Properties for tables: * supportsModel -- a short name of a data model supported through this table (for TAPRegExt dataModel); you can give multiple names separated by commas. * supportsModelURI -- a URI of a data model supported through this table. You can give multiple URIs separated by blanks. If you give multiple data model names or URIs, the sequences of names and URIs must be identical (in particular, each name needs a URI).
Nested Classes | |
Inherited from |
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
Class Methods | |||
|
|||
Inherited from |
Static Methods | |||
|
Class Variables | |
attrSeq =
|
|
fixupFunction = None hash(x) |
|
managedAttrs =
|
|
metaModel =
|
|
name_ =
hash(x) |
|
resType =
hash(x) |
|
Inherited from Inherited from |
Properties | |
caseFixer | |
rd | |
Inherited from |
Method Details |
repr(x)
|
|
runs a query generated via getSimpleQuery and returns a list of rowdicts. This uses a table connection and queryToDicts; the keys in the dictionaries will have the right case for this table's columns, though. params is a dictionary of fillers for fragments and postfix. |
returns a TableDef from a sequence of columns. You can give additional constructor arguments. makeStruct is used to build the instance, the mixin hack is applied. Columns with identical names will be disambiguated. |
returns the column or param with name. There is nothing keeping you from having both a column and a param with the same name. If that happens, you will only see the column. But don't do it. |
returns the column or param with utype. This is supposed to be unique, but the function will just return the first matching item it finds. |
returns the first of column and param having name name. The function raises a NotFoundError if neiter column nor param with name exists. |
returns the table note meta value for noteTag. This will raise a NotFoundError if we don't have such a note. You will not usually use this to retrieve meta items since columns have the meta values in their note attributes. Columns, of course, use this to get their note attribute value. |
returns a query against this table. selectClause is a list of column names (in which case the names are validated against the real column names and you can use user input) or a literal string (in which case you must not provide user input or have a SQL injection hole). fragments (the WHERE CLAUSE) and postfix are taken as literal strings (so they must not contain user input). This is purely a string operation, so you'll have your normal value references in fragments and postfix, and should maintain the parameter dictionaries as usual. All parts are optional, defaulting to pulling the entire table. |
returns the URL DaCHS will show the table info page for this table under. Of course the URL is only valid for imported tables. |
returns the qualified name of the current table. (this is identical to the `macro qName`_, which you should prefer in new RDs.) |
returns the string representation of the parameter parName. This is the parameter as given in the table definition. Any changes to an instance are not reflected here. If the parameter named does not exist, an empty string is returned. NULLs/Nones are rendered as NULL; this is mainly a convenience for obscore-like applications and should not be exploited otherwise, since it's ugly and might change at some point. If a default is given, it will be returned for both NULL and non-existing params. |
returns the (unique!) name of the field having ucd in this table. If there is no or more than one field with the ucd in this table, we raise a ValueError. |
returns the (unique!) name of the field having one of ucds in this table. Ucds is a selection of ucds separated by vertical bars (|). The rules for when this raises errors are so crazy you don't want to think about them. This really is only intended for cases where "old" and "new" standards are to be supported, like with pos.eq.*;meta.main and POS_EQ_*_MAIN. If there is no or more than one field with the ucd in this table, we raise an exception. |
returns the unqualified name of the current table. In most contexts, you will probably need to use the `macro qName`_ instead of this. |
|
|
checks that row is complete and complies with all known constraints on the columns The function raises a ValidationError with an appropriate message and the relevant field if not. |
Class Variable Details |
attrSeq
|
managedAttrs
|
metaModel
|
Property Details |
caseFixer
|
rd
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |