#NEWLINE# def to_map( self , dbcols ) : #NEWLINE# #INDENT# 'Convert a primary key definition to a YAML-suitable format\n\n        :param dbcols: dictionary of dbobject columns\n        :return: dictionary\n        ' #NEWLINE# dct = self . _base_map ( ) #NEWLINE# if ( dct [ 'access_method' ] == 'btree' ) : #NEWLINE# #INDENT# del dct [ 'access_method' ] #NEWLINE# #UNINDENT# del dct [ '_table' ] #NEWLINE# dct [ 'columns' ] = [ dct [ ( k - 1 ) ] for k in self . col_idx ] #NEWLINE# del dct [ 'col_idx' ] #NEWLINE# return { #NEWLINE# #INDENT# self . name : dct , #NEWLINE# #UNINDENT# }