Fossil

Check-in [4636b4b3]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add the test-database-names command.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:4636b4b370dcf72fbc5d99a8dd86c349c37a3e2f
User & Date: drh 2016-12-01 04:09:52
Context
2016-12-01
16:41
Add support for the "fossil all ui" and "fossil all server" commands. check-in: 239b4c13 user: drh tags: trunk
04:32
Add the "fossil all ui" and "fossil all server" commands. check-in: 98e9fd73 user: drh tags: all-ui
04:09
Add the test-database-names command. check-in: 4636b4b3 user: drh tags: trunk
2016-11-30
04:08
Minor correction to documentation of new /file webpage regarding multiple highlighted line blocks. check-in: 4896c0b7 user: andybradford tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/db.c.

3314
3315
3316
3317
3318
3319
3320















  blob_vappendf( &what, zFormat, ap );
  va_end(ap);
  db_multi_exec("INSERT INTO admin_log(time,page,who,what)"
                " VALUES(now(), %Q, %Q, %B)",
                g.zPath, g.zLogin, &what);
  blob_reset(&what);
}






















>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
  blob_vappendf( &what, zFormat, ap );
  va_end(ap);
  db_multi_exec("INSERT INTO admin_log(time,page,who,what)"
                " VALUES(now(), %Q, %Q, %B)",
                g.zPath, g.zLogin, &what);
  blob_reset(&what);
}

/*
** COMMAND: test-database-names
**
** Print the names of the various database files:
** (1) The main repository database
** (2) The local checkout database
** (3) The global configuration database
*/
void test_database_name_cmd(void){
  db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
  fossil_print("Repository database: %s\n", g.zRepositoryName);
  fossil_print("Local database:      %s\n", g.zLocalDbName);
  fossil_print("Config database:     %s\n", g.zConfigDbName);
}