Re: [Bug-apl] libcurl and libmysql/mariadb

2016-09-05 Thread Elias Mårtenson
For the database part, all you have to do is to implement a couple of C++
interfaces, and it will be integrated into the existing SQL framework
(which currently supports Postgres and SQLite).

I'm typing this on my phone so I can't give you any specifics at the
moment, but look at the SQLite implementation for pointers. Start at the
function init_provider_map in apl-sqlite.cc (yes, the name of that file is
bad, it was chosen early, when I hadn't decided to make the system support
multiple databases).

If you have any questions about it, you can just ask them here.

Regards,
Elias

On 6 Sep 2016 01:52,  wrote:

> Hi
>
> Are there gnuapl 'templates' for developing 'native funtions' for libcurl
> and libmysql/mariadb ?
>
> I've been looking for documentation to use to follow but besides the
> gnuapl source code itself nothing
>
> Thanks
>
>


Re: [Bug-apl] libcurl and libmysql/mariadb

2016-09-05 Thread Juergen Sauermann

  
  
Hi,
  
  the src/native subdirectory contains a number of templates
  for native niladic and
  nomadic (aka. ambivalent) functions and monadic and dyadic
  operators.
  Most of the code is actually contained in template.hh
  because it is common
  for all function variants.
  
  The template functions simply print that they were called. You can
  replace that
  printout with whatever you want to do in order to produce the
  result value Z.
  
  /// Jürgen
  
  
  

On 09/05/2016 07:51 PM, enz...@gmx.com
  wrote:


  Hi

Are there gnuapl 'templates' for developing 'native funtions' for libcurl and libmysql/mariadb ?

I've been looking for documentation to use to follow but besides the gnuapl source code itself nothing

Thanks