1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-12-24 14:17:58 +03:00

Add support for tab-completion (using the ext/misc/completion.c virtual table)

to the command-line shell.

FossilOrigin-Name: 95cd1d9f8baa6be305c9a8bfa26fef2a403f2d5b3b5c9c55382ec04f0bc98d40
This commit is contained in:
drh
2017-07-11 13:59:07 +00:00
parent 2ce15c3f4c
commit 56eb09bc23
5 changed files with 663 additions and 17 deletions

View File

@@ -33,10 +33,7 @@
** faster than any human can type.
**
*/
#if !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_COMPLETIONVTAB)
#if !defined(SQLITEINT_H)
#include "sqlite3ext.h"
#endif
SQLITE_EXTENSION_INIT1
#include <assert.h>
#include <string.h>
@@ -495,7 +492,6 @@ int sqlite3CompletionVtabInit(sqlite3 *db){
return rc;
}
#ifndef SQLITE_CORE
#ifdef _WIN32
__declspec(dllexport)
#endif
@@ -511,5 +507,3 @@ int sqlite3_completion_init(
#endif
return rc;
}
#endif /* SQLITE_CORE */
#endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_COMPLETIONVTAB) */