<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Connect to any database (MySQL, Postgres, MariaDB) using CAPM for JavaScript in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/connect-to-any-database-mysql-postgres-mariadb-using-capm-for-javascript/qaa-p/12134180#M4534740</link>
    <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;kturske-pmc&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;please follow the &lt;A href="https://github.com/sapmentors/cap-community/issues/88" target="_blank"&gt;Create PostgreSQL adapter #88&lt;/A&gt; to help us create the adapter as soon as it's possible.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Gregor&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jun 2020 08:47:20 GMT</pubDate>
    <dc:creator>gregorw</dc:creator>
    <dc:date>2020-06-21T08:47:20Z</dc:date>
    <item>
      <title>Connect to any database (MySQL, Postgres, MariaDB) using CAPM for JavaScript</title>
      <link>https://community.sap.com/t5/technology-q-a/connect-to-any-database-mysql-postgres-mariadb-using-capm-for-javascript/qaq-p/12134176</link>
      <description>&lt;P&gt;I have gone through the tutorial for the CDS CAPM:&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://developers.sap.com/tutorials/cp-apm-nodejs-create-service.html"&gt;https://developers.sap.com/tutorials/cp-apm-nodejs-create-service.html&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;--and--&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://developers.sap.com/tutorials/cap-service-deploy.html"&gt;https://developers.sap.com/tutorials/cap-service-deploy.html&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Now, I am wondering if there would be any sort of way to expose different types of databases (e.g. PostgreSQL, MySQL, MariaDB, etc.) instead of just SQLite and Hana. The reason why I want to use a database other than these two is that I do not have direct access to Hana and I want something that is somewhat similar to Hana for the sake of testing. Anyways, I am currently using Postgres for my test database because I already have a Docker container with an instance of Postgres running inside of it. Anyways, this is how I have my package.json set up:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;"cds": {
    "requires": {
      "db": {
        "kind": "pg",
        "model": [
          "db",
          "srv"
        ],
        "credentials": {
          "url": "127.0.01",
          "port": "5432",
          "database": "postgres",
          "username": "postgres",
          "password": "PGPASSWORD"

        }
      }
    }
  }
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I currently have the npm package "pg" installed which is a Postgres client for Node.js. I have tried both "cds watch" and "cds deploy" Now there doesn't seem to be a deployer module for this use case unless there is a step I am missing. Any sort of direction on where to go would be extremely helpful. &lt;/P&gt;
  &lt;P&gt;Thank you everyone!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 21:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/connect-to-any-database-mysql-postgres-mariadb-using-capm-for-javascript/qaq-p/12134176</guid>
      <dc:creator>former_member665050</dc:creator>
      <dc:date>2020-03-16T21:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to any database (MySQL, Postgres, MariaDB) using CAPM for JavaScript</title>
      <link>https://community.sap.com/t5/technology-q-a/connect-to-any-database-mysql-postgres-mariadb-using-capm-for-javascript/qaa-p/12134177#M4534737</link>
      <description>&lt;P&gt;hi kyle,&lt;/P&gt;&lt;P&gt;what you're trying to do is sth we've been bothering the CAP core team with from the very beginning: support for persistence sfw other than HANA &amp;amp; SQLite. Due to CAP treating cf as its' birthplace, this is unfortunately the status quo.&lt;/P&gt;&lt;P&gt;But CAP is designed in a modular fashion, so plugging in other DB adapters is technically possible. As soon as Daniel H (CAP papa) has walked us through the internal code base at &lt;A href="https://sapmentors.github.io/reCAP/"&gt;reCAP&lt;/A&gt; and as soon as CAP itself is Open Source, many of us are on their heels of jumping to the occasion for providing CAP persistence modules for Postgres and the like. &lt;/P&gt;&lt;P&gt;Keep your fingers crossed!&lt;/P&gt;&lt;P&gt;Best, V.  &lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 06:35:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/connect-to-any-database-mysql-postgres-mariadb-using-capm-for-javascript/qaa-p/12134177#M4534737</guid>
      <dc:creator>vobu</dc:creator>
      <dc:date>2020-03-17T06:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to any database (MySQL, Postgres, MariaDB) using CAPM for JavaScript</title>
      <link>https://community.sap.com/t5/technology-q-a/connect-to-any-database-mysql-postgres-mariadb-using-capm-for-javascript/qaa-p/12134178#M4534738</link>
      <description>&lt;P&gt;Hi Kyle,&lt;/P&gt;&lt;P&gt;quite a time ago I've started &lt;A href="https://github.com/gregorwolf/cap-postgres" target="_blank"&gt;gregorwolf/cap-postgres&lt;/A&gt;. Inpired by the HANA adapter I've made a connection and was able to send the query. But then a mapping of the query result to the CAP format is needed. Maybe you chime in from there.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Gregor&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 12:09:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/connect-to-any-database-mysql-postgres-mariadb-using-capm-for-javascript/qaa-p/12134178#M4534738</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2020-03-17T12:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to any database (MySQL, Postgres, MariaDB) using CAPM for JavaScript</title>
      <link>https://community.sap.com/t5/technology-q-a/connect-to-any-database-mysql-postgres-mariadb-using-capm-for-javascript/qaa-p/12134179#M4534739</link>
      <description>&lt;P&gt;Thank you very much, Gregor. I checked out the cap-postgres client you made, and it's an interesting approach. I'd like to take more time to look at and see if I can get it to work.&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Kyle&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 17:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/connect-to-any-database-mysql-postgres-mariadb-using-capm-for-javascript/qaa-p/12134179#M4534739</guid>
      <dc:creator>former_member665050</dc:creator>
      <dc:date>2020-03-17T17:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to any database (MySQL, Postgres, MariaDB) using CAPM for JavaScript</title>
      <link>https://community.sap.com/t5/technology-q-a/connect-to-any-database-mysql-postgres-mariadb-using-capm-for-javascript/qaa-p/12134180#M4534740</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;kturske-pmc&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;please follow the &lt;A href="https://github.com/sapmentors/cap-community/issues/88" target="_blank"&gt;Create PostgreSQL adapter #88&lt;/A&gt; to help us create the adapter as soon as it's possible.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Gregor&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 08:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/connect-to-any-database-mysql-postgres-mariadb-using-capm-for-javascript/qaa-p/12134180#M4534740</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2020-06-21T08:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to any database (MySQL, Postgres, MariaDB) using CAPM for JavaScript</title>
      <link>https://community.sap.com/t5/technology-q-a/connect-to-any-database-mysql-postgres-mariadb-using-capm-for-javascript/qaa-p/12134181#M4534741</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;kturske-pmc&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;hope you've seen the announcement of &lt;A href="https://github.com/sapmentors/cds-pg" target="_blank"&gt;cds-pg&lt;/A&gt;. Looking forward for your contributions and maybe other database adapters.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Gregor&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 20:39:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/connect-to-any-database-mysql-postgres-mariadb-using-capm-for-javascript/qaa-p/12134181#M4534741</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2020-08-13T20:39:34Z</dc:date>
    </item>
  </channel>
</rss>

