title: How to store sql files in json format for python
body: <p>I'm trying to use <code>aws-lambda</code>function to hit a database and extract some data, and drop it into an <code>s3-bucket</code>
  I have multiple <code>.sql</code> files that I want to store the queries from the <code>.sql</code> files in a json file and make the database in python from the json files.</p>
  <p>.sql file query:</p>
  <pre><code>SELECT item_id,
         ite_invoice_id as invoice_id,
         ite_sku as SKU,
         ite_description as description,
         ite_qty_shipped as quantity,
         ite_unit_price as unit_price,
         ite_extension as extension,
         ite_pick_uom as unit_of_measure
  FROM item
  </code></pre>
  <p>and then store it in a json file like this:</p>
  <pre><code>    barney_queries = {
        &quot;acqut&quot;: &quot;path/to/query_folder.item_sql&quot;
      }
  for key, sql_query in aquisitions.barney_queries():
    post_connection.cursor.execute(sql_query)
  </code></pre>
  <p>I'm not entirely sure if I got the structure down correctly.</p>