MCPcopy Create free account
hub / github.com/audacity/audacity / printSchemaLine

Function printSchemaLine

lib-src/sqlite/shell.c:11963–11971  ·  view source on GitHub ↗

** Print a schema statement. Part of MODE_Semi and MODE_Pretty output. ** ** This routine converts some CREATE TABLE statements for shadow tables ** in FTS3/4/5 into CREATE TABLE IF NOT EXISTS statements. */

Source from the content-addressed store, hash-verified

11961** in FTS3/4/5 into CREATE TABLE IF NOT EXISTS statements.
11962*/
11963static void printSchemaLine(FILE *out, const char *z, const char *zTail){
11964 if( z==0 ) return;
11965 if( zTail==0 ) return;
11966 if( sqlite3_strglob("CREATE TABLE ['\"]*", z)==0 ){
11967 utf8_printf(out, "CREATE TABLE IF NOT EXISTS %s%s", z+13, zTail);
11968 }else{
11969 utf8_printf(out, "%s%s", z, zTail);
11970 }
11971}
11972static void printSchemaLineN(FILE *out, char *z, int n, const char *zTail){
11973 char c = z[n];
11974 z[n] = 0;

Callers 3

printSchemaLineNFunction · 0.85
shell_callbackFunction · 0.85
dump_callbackFunction · 0.85

Calls 1

utf8_printfFunction · 0.85

Tested by

no test coverage detected