completion_list_get


Description:

[ CCode ( array_length = false , array_null_terminated = true ) ]
public string[]? completion_list_get (Connection cnc, string sql, int start, int end)

Creates an array of strings (terminated by a null) corresponding to possible completions.

If no completion is available, then the returned array contains just one NULL entry, and if it was not possible to try to compute a completions list, then null is returned.

Parameters:

cnc

a Connection object

sql

a partial SQL statement which is the context of the completion proposal, may also start with a "." for Gda's tools which use internal commands

start

starting position within sql of the "token" to complete (starts at 0)

end

ending position within sql of the "token" to complete

Returns:

a new array of strings, or null (use strfreev to free the returned array)


Namespace: Gda
Package: libgda-6.0