Sure, why not. Then the firebird would support new connection string, I think.
Currently it is only possible to connect to existing database: soci::session sql(firebird, "service=/tmp/test.fdb user=SYSDBA password=masterkey"); With your suggestion implemented, this should also be possible: soci::session sql(firebird, "CREATE DATABASE \'/tmp/test.fdb\' user=SYSDBA password=masterkey"); Feel free to submit patch via pull request, if you aim to implement it. Mateusz Ĺoskot (Sent from mobile) On 28 Oct 2015 00:13, "K Patts" <knmpa...@gmail.com> wrote: > Further thoughts on this has brought attention to the > isc_dsql_execute_immediate as being not implemented in SOCI, and this gets > used for 'CREATE DATABASE' DDL in API for Firebird. Yet the > isc_dsql_execute is implemented (statement.cpp) so... Would it not be > reasonable for the library to have this included. > > Kind regards, Kev. > > On Tue, 27 Oct 2015 at 16:50 K Patts <knmpa...@gmail.com> wrote: > >> Thank you, Mateusz. >> >> Pleased that it was not simply an oversight, but indeed supported only >> externally. >> >> Kind regards, Kev. >> >> On Tue, 27 Oct 2015 at 16:18 Mateusz Loskot <mate...@loskot.net> wrote: >> >>> On 27 October 2015 at 16:08, K Patts <knmpa...@gmail.com> wrote: >>> > Dear Reader, >>> > >>> > Success has been achieved with an already created database having a >>> table >>> > and its relevant contents, for a Firebird database. >>> > >>> > Would it be possible to use the data definition language of CREATE >>> DATABASE >>> > to establish a clean new database using the SOCI-Firebird? >>> >>> I am not Firebird user myself, so but as far as I read the engine's FAQ, >>> it is not really feasible: http://www.firebirdfaq.org/faq67/ >>> >>> If you (or anyone) find a neat solution, don't hesitate to submit pull >>> request >>> https://github.com/SOCI/soci/ >>> >>> Best regards, >>> -- >>> Mateusz Loskot, http://mateusz.loskot.net >>> >>> >>> ------------------------------------------------------------------------------ >>> _______________________________________________ >>> soci-users mailing list >>> soci-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/soci-users >>> >> > > ------------------------------------------------------------------------------ > > _______________________________________________ > soci-users mailing list > soci-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/soci-users > >
------------------------------------------------------------------------------
_______________________________________________ soci-users mailing list soci-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/soci-users