def getDbInfo(self, lsstLevel, dbName, **kwargs):
     """
     Retrieves information about a database
     @param lsstLevel: Given instance
     @param dbName: Database in the given instance to query
     @param kwargs: kwargs to pass through to requests library.
     """
     path = "/db/{lsstLevel}/{dbName}".format(lsstLevel=_qt(lsstLevel), dbName=_qt(dbName))
     return self.doRequest("get", self.ENDPOINT, path)
Esempio n. 2
0
 def getDbInfo(self, lsstLevel, dbName, **kwargs):
     """
     Retrieves information about a database
     @param lsstLevel: Given instance
     @param dbName: Database in the given instance to query
     @param kwargs: kwargs to pass through to requests library.
     """
     path = "/db/{lsstLevel}/{dbName}".format(lsstLevel=_qt(lsstLevel),
                                              dbName=_qt(dbName))
     return self.doRequest("get", self.ENDPOINT, path)
Esempio n. 3
0
 def getTableNames(self, lsstLevel, dbName, **kwargs):
     """
     List available table names
     @param lsstLevel: Given instance
     @param dbName: Database in the given instance to query
     @param kwargs: kwargs to pass through to requests library.
     """
     path = "/db/{lsstLevel}/{dbName}/tables".format(
         lsstLevel=_qt(lsstLevel), dbName=_qt(dbName))
     return self.doRequest("get", self.ENDPOINT, path)
 def getTableSchema(self, lsstLevel, dbName, tableName, **kwargs):
     """
     Get a table's schema
     @param lsstLevel: Given instance
     @param dbName: Database in the given instance
     @param tableName: The table's name
     @param kwargs: kwargs to pass through to requests library.
     """
     path = "/db/{lsstLevel}/{dbName}/tables/{tableName}/schema".format(
         lsstLevel=_qt(lsstLevel), dbName=_qt(dbName), tableName=_qt(tableName))
     return self.doRequest("get", self.ENDPOINT, path)
Esempio n. 5
0
 def getTableSchema(self, lsstLevel, dbName, tableName, **kwargs):
     """
     Get a table's schema
     @param lsstLevel: Given instance
     @param dbName: Database in the given instance
     @param tableName: The table's name
     @param kwargs: kwargs to pass through to requests library.
     """
     path = "/db/{lsstLevel}/{dbName}/tables/{tableName}/schema".format(
         lsstLevel=_qt(lsstLevel),
         dbName=_qt(dbName),
         tableName=_qt(tableName))
     return self.doRequest("get", self.ENDPOINT, path)
 def getDbNames(self, lsstLevel, **kwargs):
     """
     List available databases
     @param: lsstLevel: Given instance to check
     @param kwargs: kwargs to pass through to requests library.
     """
     path = "/db/{lsstLevel}".format(lsstLevel=_qt(lsstLevel))
     return self.doRequest("get", self.ENDPOINT, path)
Esempio n. 7
0
 def getDbNames(self, lsstLevel, **kwargs):
     """
     List available databases
     @param: lsstLevel: Given instance to check
     @param kwargs: kwargs to pass through to requests library.
     """
     path = "/db/{lsstLevel}".format(lsstLevel=_qt(lsstLevel))
     return self.doRequest("get", self.ENDPOINT, path)
 def getTableNames(self, lsstLevel, dbName, **kwargs):
     """
     List available table names
     @param lsstLevel: Given instance
     @param dbName: Database in the given instance to query
     @param kwargs: kwargs to pass through to requests library.
     """
     path = "/db/{lsstLevel}/{dbName}/tables".format(lsstLevel=_qt(lsstLevel), dbName=_qt(dbName))
     return self.doRequest("get", self.ENDPOINT, path)