251
260
NAME="DBI-DRIVER-SPECIFIC-FUNCTION"
252
261
>3.2.4. dbi_driver_specific_function</A
264
CLASS="PROGRAMLISTING"
265
>void *dbi_driver_specific_function(dbi_driver Driver, const char *name)</PRE
276
>dbi_driver_specific_function</B
272
290
>Returns a function pointer to the specifed custom function. This can be used to access database-specific functionality, but it will restrict your code to one particular database, lessening the benefits of using libdbi.</P
310
324
NAME="DBI-DRIVER-QUOTE-STRING"
311
325
>3.2.5. dbi_driver_quote_string</A
323
CLASS="PROGRAMLISTING"
324
>int dbi_driver_quote_string(dbi_driver Driver, char **orig)</PRE
331
>Encloses the target string in the types of quotes that the database expects, and escapes any special characters. The original string will be freed and will point to a newly allocated one (which you still must free on your own).</P
340
>dbi_driver_quote_string</B
354
>Encloses the target string in the types of quotes that the database expects, and escapes any special characters. The original string will be freed and <CODE
357
> will point to a newly allocated one (which you still must free on your own). If an error occurs, the original string will not be freed.</P
365
>This function is deprecated. Use <A
366
HREF="reference-query.html#DBI-CONN-QUOTE-STRING"
367
>dbi_conn_quote_string</A
335
374
CLASS="VARIABLELIST"
346
383
>: The target driver.</P
388
>: A pointer to the string to quote and escape.</P
394
>The new string's length in bytes, excluding the terminating zero byte, or 0 in case of an error. The length of a quoted empty string is 2 bytes.</P
404
NAME="DBI-DRIVER-QUOTE-STRING-COPY"
405
>3.2.6. dbi_driver_quote_string_copy</A
420
>dbi_driver_quote_string_copy</B
437
>Encloses the target string in the types of quotes that the database expects, and escapes any special characters. The original string will be left alone, and <CODE
440
> will point to a newly allocated string containing the quoted string (which you still must free on your own). In case of an error, <CODE
443
> is an invalid pointer which you must not attempt to deallocate.</P
451
>This function is deprecated. Use <A
452
HREF="reference-query.html#DBI-CONN-QUOTE-STRING-COPY"
453
>dbi_conn_quote_string_copy</A
469
>: The target driver.</P
351
474
>: A pointer to the string to quote and escape.</P
359
>The new string's length.</P
479
>: After the function returns, this pointer will point to the quoted and escaped string.</P
485
>The quoted string's length in bytes, excluding the terminating zero byte, or 0 in case of an error. The length of a quoted empty string is 2 bytes.</P
495
NAME="DBI-DRIVER-ENCODING-FROM-IANA"
496
>3.2.7. dbi_driver_encoding_from_iana</A
511
>dbi_driver_encoding_from_iana</B
525
>Requests the database engine specific name of the character encoding identified by its name as known to <A
526
HREF="http://www.iana.org"
529
>. Use this function to pass the database engine specific encoding name to SQL queries , e.g. as part of a <B
545
>: The target driver.</P
550
>: The IANA name of the character encoding.</P
556
>A string containing the database engine specific encoding name. If the encoding name cannot be translated, the IANA name is returned without translation.</P
566
NAME="DBI-DRIVER-ENCODING-TO-IANA"
567
>3.2.8. dbi_driver_encoding_to_iana</A
582
>dbi_driver_encoding_to_iana</B
597
HREF="http://www.iana.org"
600
> name of the character encoding identified by its database engine specific name. Use this function to convert the database engine specific name returned by SQL queries to the corresponding common name.</P
613
>: The target driver.</P
618
>: The database engine specific name of the character encoding.</P
624
>A string containing the IANA encoding name. If the encoding name cannot be translated, the database engine specific name is returned without translation.</P
485
754
NAME="DBI-DRIVER-GET-DESCRIPTION"
486
>3.2.6.3. dbi_driver_get_description</A
755
>3.2.9.3. dbi_driver_get_description</A
498
CLASS="PROGRAMLISTING"
499
>const char *dbi_driver_get_description(dbi_driver Driver)</PRE
770
>dbi_driver_get_description</B
772
>(dbi_driver Driver);</CODE
506
778
>Requests a description of the specified driver. The calling program must not attempt to free the returned string.</P