comp.lang.ada
 help / color / mirror / Atom feed
From: Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject: Re: tokyocabinet,redis,mongodb,couchdb,influxdb,timescaledb connectors.
Date: Thu, 31 Oct 2019 22:07:46 -0400
Date: 2019-10-31T22:07:46-04:00	[thread overview]
Message-ID: <u64nrep7qkv4esoa6p5htir8ivokfui3lq@4ax.com> (raw)
In-Reply-To: efb0cc13-58b7-4aa1-be00-e4f291f97057@googlegroups.com

On Thu, 31 Oct 2019 16:32:13 -0700 (PDT), Alain De Vos
<devosalain71@gmail.com> 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/


  reply	other threads:[~2019-11-01  2:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-31 17:17 tokyocabinet,redis,mongodb,couchdb,influxdb,timescaledb connectors Alain De Vos
2019-10-31 23:32 ` Alain De Vos
2019-11-01  2:07   ` Dennis Lee Bieber [this message]
2019-11-01  6:49   ` Dmitry A. Kazakov
2019-11-01 13:51 ` Shark8
2019-11-01 14:39   ` Alain De Vos
2022-12-22 13:10   ` Marius Amado-Alves
2022-12-22 13:16     ` Marius Amado-Alves
2019-11-03 18:28 ` Björn Lundin
2019-11-03 18:41   ` Alain De Vos
2019-11-03 21:12     ` Björn Lundin
2019-11-03 20:31 ` Alain De Vos
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox