Esempio n. 1
0
    def __init__(self):
        self.PHONE = "phone"
        self.DATE = "date"
        self.DURATION = "duration"
        self.DIRECTION = "direction"

        self.connection = None
        self.cursor = None
        self.debug = True
        try:
            self.connection = lite.connect(profile_path("data.db"))
            self.cursor = self.connection.cursor()
            self.cursor.execute('SELECT SQLITE_VERSION()')

            data = self.cursor.fetchone()
            print "SQLite version: %s" % data

        except lite.Error, e:
            print "Error %s:" % e.args[0]
Esempio n. 2
0
    def __init__(self):
        self.PHONE = "phone"
        self.DATE = "date"
        self.DURATION = "duration"
        self.DIRECTION = "direction"

        self.connection = None
        self.cursor = None
        self.debug = True
        try:
            self.connection = lite.connect(profile_path("data.db"))
            self.cursor = self.connection.cursor()
            self.cursor.execute('SELECT SQLITE_VERSION()')

            data = self.cursor.fetchone()
            print "SQLite version: %s" % data

        except lite.Error, e:
            print "Error %s:" % e.args[0]
Esempio n. 3
0
    def __init__(self):
        self.TABLE_NAME = "Contacts"
        self.ID = "id"
        self.NAME = "name"
        self.PHONE = "phone"

        self.connection = None
        self.cursor = None
        self.debug = True

        try:
            self.connection = lite.connect(profile_path("data.db"))
            self.cursor = self.connection.cursor()
            self.cursor.execute('SELECT SQLITE_VERSION()')

            data = self.cursor.fetchone()
            print "SQLite version: %s" % data

        except lite.Error, e:
            print "Error %s:" % e.args[0]
Esempio n. 4
0
    def __init__(self):
        self.TABLE_NAME = "Contacts"
        self.ID = "id"
        self.NAME = "name"
        self.PHONE = "phone"

        self.connection = None
        self.cursor = None
        self.debug = True
        
        try:
            self.connection = lite.connect(profile_path("data.db"))
            self.cursor = self.connection.cursor()
            self.cursor.execute('SELECT SQLITE_VERSION()')

            data = self.cursor.fetchone()
            print "SQLite version: %s" % data

        except lite.Error, e:
            print "Error %s:" % e.args[0]