deleteme/database.py
def create_websites_table(self):
        '''
        Create the table ``websites`` programmatically, without using .sql file.

        Print an error message in the console if it could not be created.

        :return: ``True`` if the table was successfully created or ``False``
            otherwise.

        '''
		
        stmnt = 'CREATE TABLE IF NOT EXISTS websites (website_id INTEGER PRIMARY KEY AUTOINCREMENT,\
                                                      name TEXT,\
                                                      url TEXT,\
                                                      difficulty TEXT,\
                                                      notes TEXT,\
                                                      domains TEXT,\
                                                      UNIQUE(name, url,difficulty,notes,domains)\
                                                 )'
					
        con = sqlite3.connect(self.db_path)
        with con:
            #Get the cursor object.
            #It allows to execute SQL code and traverse the result set
            cur = con.cursor()
            try:
                #execute the statement
                cur.execute(stmnt)
            except sqlite3.Error as excp:
                print("Error %s:" % excp.args[0])
                return False
        return True

        Create the table ``websites`` programmatically, without using .sql file.

        Print an error message in the console if it could not be created.

        :return: ``True`` if the table was successfully created or ``False``
            otherwise.

        
Create the table ``websites`` programmatically, without using .sql file.
Print an error message in the console if it could not be created.
Create the table ` ` websites ` ` programmatically without using . sql file . Print an error message in the console if it could not be created .
def create_websites_table(self):
        stmnt = 'CREATE TABLE IF NOT EXISTS websites (website_id INTEGER PRIMARY KEY AUTOINCREMENT,\
                                                      name TEXT,\
                                                      url TEXT,\
                                                      difficulty TEXT,\
                                                      notes TEXT,\
                                                      domains TEXT,\
                                                      UNIQUE(name, url,difficulty,notes,domains)\
                                                 )'
        con = sqlite3.connect(self.db_path)
        with con:
            cur = con.cursor()
            try:
                cur.execute(stmnt)
            except sqlite3.Error as excp:
                print("Error %s:" % excp.args[0])
                return False
        return True
def create_websites_table ( self ) : stmnt = 'CREATE TABLE IF NOT EXISTS websites (website_id INTEGER PRIMARY KEY AUTOINCREMENT,\
                                                      name TEXT,\
                                                      url TEXT,\
                                                      difficulty TEXT,\
                                                      notes TEXT,\
                                                      domains TEXT,\
                                                      UNIQUE(name, url,difficulty,notes,domains)\
                                                 )' con = sqlite3 . connect ( self . db_path ) with con : cur = con . cursor ( ) try : cur . execute ( stmnt ) except sqlite3 . Error as excp : print ( "Error %s:" % excp . args [ 0 ] ) return False return True
Create the table ``websites`` programmatically, without using .sql file.
Create the table ` ` websites ` ` programmatically without using . sql file .
'''
        Create the table ``websites`` programmatically, without using .sql file.

        Print an error message in the console if it could not be created.

        :return: ``True`` if the table was successfully created or ``False``
            otherwise.

        ''' #Get the cursor object. #It allows to execute SQL code and traverse the result set #execute the statement
``True`` if the table was successfully created or ``False``
otherwise.
` ` True ` ` if the table was successfully created or ` ` False ` ` otherwise .
self