#NEWLINE# def append_table( con_src , con_dst , table_name ) : #NEWLINE# #INDENT# '\n    Append the table from source to destination.\n\n    :param SimpleSQLite con_src: Source of the database.\n    :param SimpleSQLite con_dst: Destination of the database.\n    :param str table_name: Table name to copy.\n    :return: |True| if success.\n    :rtype: bool\n    :raises simplesqlite.TableNotFoundError:\n        |raises_verify_table_existence|\n    :raises ValueError: If attribute of the table is different from each other.\n\n    .. seealso::\n\n        :py:meth:`simplesqlite.core.SimpleSQLite.create_table_with_data`\n    ' #NEWLINE# con_src . verify_table_existence ( table_name ) #NEWLINE# con_dst . validate_access_permission ( [ 'w' , 'a' ] ) #NEWLINE# if con_dst . has_table ( table_name ) : #NEWLINE# #INDENT# src_attr_list = con_src . get_attribute_name_list ( table_name ) #NEWLINE# dst_attr_list = con_dst . get_attribute_name_list ( table_name ) #NEWLINE# if ( src_attr_list != dst_attr_list ) : #NEWLINE# #INDENT# raise ValueError ( ( '\n            source and destination attribute is different from each other\n              src: %s\n              dst: %s\n            ' % ( str ( dst_attr_list ) , str ( dst_attr_list ) ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# result = con_src . select ( select = '*' , table_name = table_name ) #NEWLINE# if ( result is None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# value_matrix = result . fetchall ( ) #NEWLINE# con_dst . create_table_with_data ( table_name , con_src . get_attribute_name_list ( table_name ) , value_matrix ) #NEWLINE# return True