
    g                         d dl Z defdZd Zy)    N
datasourcec                    d }	 t        j                         j                         }|j                  t	        |              |j                         }|j                          d|iS # t        $ r}dt        |      dcY d }~S d }~ww xY w)N   )errormessageoptions)	dbget_dbcursorexecuteget_options_queryfetchallclose	Exceptionstr)r   r   cures       */var/www/html/stock-fastapi/datasources.pyget_optionsr      st    G1iik  "%j12,,.		 !!  1A001s   AA$ $	B-B :B Bc                 $    dj                  |       S )Nzselect id, {0} from {0}s)format)r   s    r   r   r      s    %,,Z88    )r	   r   r   r    r   r   <module>r      s    	
"C 
"9r   