# $SnapHashLicense:
#
# SnapLogic - Open source data services
#
# Copyright (C) 2008 - 2009, SnapLogic, Inc. All rights reserved.
#
# See http://www.snaplogic.org for more information about
# the SnapLogic project.
#
# This program is free software, distributed under the terms of
# the GNU General Public License Version 2. See the LEGAL file
# at the top of the source tree.
#
# "SnapLogic" is a trademark of SnapLogic, Inc.
#
#
# $
# $Id: ConnectionSQLite.py 10330 2009-12-24 22:13:38Z grisha $
"""
SQLite Connection component.
"""
from snaplogic.common import version_info
from snaplogic.components.DBConnection import DBConnection
import snaplogic.cc.prop as prop
from snaplogic.snapi_base import keys
class ConnectionSQLite(DBConnection):
"""
This class implements the SQLite Connection component.
"""
api_version = '1.0'
component_version = '1.2'
component_description = "This component specifies SQLite connection information."
component_label = "DB Connection - SQLite"
component_doc_uri = "https://www.snaplogic.org/trac/wiki/Documentation/%s/ComponentRef/ConnectionSQLite" % \
version_info.doc_uri_version
def create_resource_template(self):
self.set_property_def('db_path',
prop.SimpleProp('Path',
"string",
"Path to the SQLite database - local to the Component Container",
None,
True))
self._set_cats()
def upgrade_1_0_to_1_1(self):
self._set_cats()
def upgrade_1_1_to_1_2(self):
"""
No-op upgrade only to change component doc URI during the upgrade
which will be by cc_info before calling this method.
"""
pass
|