ParamReader¶
-
class
vertica_sdk.ParamReader¶ Provides read access to a set of named parameters. Type-specific methods can be used to retrieve values.
-
containsParameter(self, fieldName)¶ Returns True if there is a value for fieldName and False otherwise.
-
getBool(self, fieldName)¶ Returns a boolean value corresponding to the key fieldName.
Raises an error if there is no parameter fieldName.
-
getDate(self, fieldName)¶ Returns a
datetime.datecorresponding to the key fieldName.Raises an error if there is no parameter fieldName.
-
getFloat(self, fieldName)¶ Returns a
floatcorresponding to the key fieldName.Raises an error if there is no parameter fieldName.
-
getInt(self, fieldName)¶ Returns an
intcorresponding to the key fieldName.Raises an error if there is no parameter fieldName.
-
getInterval(self, fieldName)¶ Returns a
datetime.timedeltacorresponding to the keyfieldName.Raises an error if there is no parameter fieldName.
-
getIntervalYM(self, fieldName)¶ Returns a
intcorresponding to the keyfieldNamewhose value represents an interval in months.Raises an error if there is no parameter fieldName.
-
getNumeric(self, fieldName)¶ Returns a
decimal.Decimalcorresponding to the key fieldName.Raises an error if there is no parameter fieldName.
-
getParamNames(self)¶ Returns a list containing the names of all of the parameters.
-
getString(self, fieldName)¶ Returns a
strcorresponding to the key fieldName.Raises an error if there is no parameter fieldName.
-
getTime(self, fieldName)¶ Returns a
datetime.timecorresponding to they key fieldName. The timezone is fixed to UTC.Raises an error if there is no parameter fieldName.
-
getTimeTz(self, fieldName)¶ Returns a
datetime.timecorresponding to they key fieldName. The timezone is a constant offset from UTC.Raises an error if there is no parameter fieldName.
-
getTimestamp(self, fieldName)¶ Returns a
datetime.datetimecorresponding to they key fieldName.Raises an error if there is no parameter fieldName.
-
getTimestampTz(self, fieldName)¶ Returns a
datetime.datetimecorresponding to they key fieldName.Raises an error if there is no parameter fieldName.
-
isEmpty(self)¶ Returns True if there are no parameters and False otherwise.
-