Re: SWI-Prolog : MySQL handle as global variable?
- From: Jan Wielemaker <jan@xxxxxxxxxxxxxxxxxxx>
- Date: 15 Sep 2006 18:43:50 GMT
On 2006-09-15, roschler <robert.oschler@xxxxxxxxx> wrote:
Would it be a dumb idea to put the handle received from odbc_connect in
a global variable? The idea being to avoid reopening the MySQL
connection from other parts of the program by re-using the handle
stored as a global variable.
See options alias(Alias), open(once). Using assert/retract is always
a bad idea as the handles may be pointing to non-existing database
connections.
--- Jan
.
- References:
- SWI-Prolog : MySQL handle as global variable?
- From: roschler
- SWI-Prolog : MySQL handle as global variable?
- Prev by Date: Re: Does first argument indexing still work if the first argument is a string?
- Next by Date: Re: How to create a list of sharing variables?
- Previous by thread: SWI-Prolog : MySQL handle as global variable?
- Next by thread: SWI not evaluating expression
- Index(es):
Relevant Pages
|