Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
KSQL_ALLOC(3)	       FreeBSD Library Functions Manual		 KSQL_ALLOC(3)

NAME
     ksql_alloc	-- allocate a ksql database handle

LIBRARY
     library "ksql"

SYNOPSIS
     #include <sys/types.h>
     #include <stdint.h>
     #include <ksql.h>

     struct ksql *
     ksql_alloc(const struct ksqlcfg *cfg);

DESCRIPTION
     This function will	soon be	deprecated. See	ksql_alloc_child(3) for	the
     replacement.

     The ksql_alloc function creates a SQLite database handle.	This must be
     matched by	a call to ksql_free(3) unless KSQL_SAFE_EXIT is	specified, in
     which case	it will	be freed on exit.  (It is still	good practice to manu-
     ally free.)  It is	usually	followed by ksql_open(3).  The database	is
     opened within the calling process.	 For a split-process model, see
     ksql_alloc_child(3).

     If	cfg is NULL, a configuration from ksql_cfg_defaults(3) is used.

RETURN VALUES
     This returns the allocated	database handle	or NULL	if memory allocations
     failed.

SEE ALSO
     ksql_alloc_child(3), ksql_cfg_defaults(3),	ksql_free(3)

FreeBSD	13.0			  May 9, 2018			  FreeBSD 13.0

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | RETURN VALUES | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=ksql_alloc&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help