コード例 #1
0
ファイル: dbWeb.py プロジェクト: biobot500/addabaji-ci
class Web(SQLite):
	def __init__(self):
		SQLite.__init__(self)
		self.nameEnclosureChar = "~~"
		self._remoteConnector = RemoteConnector(self)


	def getConnection(self, connectInfo, **kwargs):
		connectInfo.Database = ":memory:"
		self._connection = super(Web, self).getConnection(connectInfo, **kwargs)
		return self._connection


	def getTables(self, cursor, includeSystemTables=False):
		return self._remoteConnector.getTables(includeSystemTables=includeSystemTables)


	def getTableRecordCount(self, tableName):
		return self._remoteConnector.getTableRecordCount(tableName=tableName)


	def getFields(self, tableName, crs=None):
		return self._remoteConnector.getFields(tableName=tableName)


	def _getRemoteURL(self):
		return self._connection.connectInfo.RemoteHost
コード例 #2
0
ファイル: dbWeb.py プロジェクト: xfxf/dabo
class Web(SQLite):
    def __init__(self):
        SQLite.__init__(self)
        self.nameEnclosureChar = "~~"
        self._remoteConnector = RemoteConnector(self)

    def getConnection(self, connectInfo, **kwargs):
        connectInfo.Database = ":memory:"
        self._connection = super(Web,
                                 self).getConnection(connectInfo, **kwargs)
        return self._connection

    def getTables(self, cursor, includeSystemTables=False):
        return self._remoteConnector.getTables(
            includeSystemTables=includeSystemTables)

    def getTableRecordCount(self, tableName):
        return self._remoteConnector.getTableRecordCount(tableName=tableName)

    def getFields(self, tableName, crs=None):
        return self._remoteConnector.getFields(tableName=tableName)

    def _getRemoteURL(self):
        return self._connection.connectInfo.RemoteHost
コード例 #3
0
ファイル: dbWeb.py プロジェクト: biobot500/addabaji-ci
	def __init__(self):
		SQLite.__init__(self)
		self.nameEnclosureChar = "~~"
		self._remoteConnector = RemoteConnector(self)
コード例 #4
0
ファイル: dbWeb.py プロジェクト: xfxf/dabo
 def __init__(self):
     SQLite.__init__(self)
     self.nameEnclosureChar = "~~"
     self._remoteConnector = RemoteConnector(self)