comp.lang.ada
 help / color / mirror / Atom feed
From: eduardsapotski@gmail.com
Subject: Re: Call postgresql function...
Date: Wed, 27 Jul 2016 01:42:25 -0700 (PDT)
Date: 2016-07-27T01:42:25-07:00	[thread overview]
Message-ID: <651f87d2-0c20-4c0c-88e8-a82f241f3466@googlegroups.com> (raw)
In-Reply-To: <nn9qp6$18an$1@gioia.aioe.org>

среда, 27 июля 2016 г., 11:18:48 UTC+3 пользователь Dmitry A. Kazakov написал:
> On 2016-07-27 09:55, eduardsapotski@gmail.com wrote:
> 
> > I started to learn Ada language.
> > How to call postgresql function with input and output parameters and return the result?
> 
> Meaning?
> 
> 1. A stored procedure
> 2. A PostgreSQL API subprogram (from libpq)
> 3. An SQL statement (preparing, binding, executing, fetching)
> 
> -- 
> Regards,
> Dmitry A. Kazakov
> http://www.dmitry-kazakov.de

Здравствуйте, Дмитрий. Как понимаю, русский язык Вам знаком? :)
Есть база PostgreSQL 9.5, в ней много функций. Функции имеют входные и выходные параметры, возвращают значения. Сейчас задача дергать эти функции из приложения на Ада. Хотелось бы найти нормальный пример с подобным функционалом. Самое лучшее что пока нашел: https://rosettacode.org/wiki/Parametrized_SQL_statement#Ada
Но здесь sqlite и немного не то. Может что посоветуете? 
Спасибо. 

  reply	other threads:[~2016-07-27  8:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-27  7:55 Call postgresql function eduardsapotski
2016-07-27  8:18 ` Dmitry A. Kazakov
2016-07-27  8:42   ` eduardsapotski [this message]
2016-07-27  9:09     ` Dmitry A. Kazakov
2016-07-27 13:14       ` Simon Wright
replies disabled

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