From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 31 Oct 2019 21:07:46 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: tokyocabinet,redis,mongodb,couchdb,influxdb,timescaledb connectors. Date: Thu, 31 Oct 2019 22:07:46 -0400 Organization: IISS Elusive Unicorn Message-ID: References: <42323176-e7da-4f1d-8491-24cb61e1dd1e@googlegroups.com> User-Agent: ForteAgent/8.00.32.1272 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-QAAEu8WY5yYypnT82MTST86Gcy03whbYklqoUMswjeWm9yfbtft13s6ykPM0m6j+Xu1lXQd/+Jc4ZkH!Fs9QXk/D5czV9jbYUM8TFbRXh7aVXF2rZV+RS+K3I8UD1h+zr4JuGzZopC3cTM9W089E3vRL X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2519 Xref: reader01.eternal-september.org comp.lang.ada:57404 Date: 2019-10-31T22:07:46-04:00 List-Id: On Thu, 31 Oct 2019 16:32:13 -0700 (PDT), Alain De Vos declaimed the following: >On Thursday, October 31, 2019 at 6:18:01 PM UTC+1, Alain De Vos wrote: >> In our modern time there are also modern databases. >> But for connecting one needs a connector. >> I wander to which databases I can connect with ada. > >Well if I can connect to python I might have a very ugly-workaround. >But how do I connect to python ? Since Python is a (byte-code) interpreted programming language in its own right, you could design some interprocess communication protocol, write handlers for said protocol in Ada and Python, and run the Python stuff in a separate process. Or, you study the section of the Python manual regarding embedding the language in another application -- and write an interface layer in Ada to access the embedded mode API (which is documented for C language programming, so your interface layer is going to look a lot like a binding to any other C-language library): https://docs.python.org/3/extending/embedding.html Of course, you'll need the proper db-api adapter for Python to use whatever DBMS you are targeting. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/