Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Improved header comment with better instructions on the vfslog.c extension. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
4bd592c8f0e011e203443a6e88008a61 |
User & Date: | drh 2013-10-19 16:51:39.506 |
Context
2013-10-21
| ||
23:17 | Improve support for the SQLITE_OMIT_FLAG_PRAGMAS compile-time option. (check-in: f1d8c3b07e user: mistachkin tags: trunk) | |
13:15 | Drop the mutex on the multiplexor before entering the xRead VFS call. (Closed-Leaf check-in: a00d2ed49c user: drh tags: multiplex-parallel-read) | |
2013-10-19
| ||
23:31 | Experimental changes toward "index only" tables. Add the ability to specify options on CREATE TABLE statements using the WITH clause modeled after PostgreSQL and SQL Server. Only the "omit_rowid" option is currently recognized and that option is currently a no-op. (check-in: 0248ec5e6e user: drh tags: omit-rowid) | |
16:51 | Improved header comment with better instructions on the vfslog.c extension. (check-in: 4bd592c8f0 user: drh tags: trunk) | |
15:07 | Fix a bug causing an "malformed database schema error" error if a temp table with the same name as an existing table that has at least one temp trigger attached to it is created. (check-in: 56dca4a65c user: dan tags: trunk) | |
Changes
Changes to ext/misc/vfslog.c.
︙ | ︙ | |||
12 13 14 15 16 17 18 | ** ** This file contains the implementation of an SQLite vfs wrapper for ** unix that generates per-database log files of all disk activity. */ /* ** This module contains code for a wrapper VFS that causes a log of | | > > > > > > > > > > > > | > > < > | > > | < > | > > > > > > > | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | ** ** This file contains the implementation of an SQLite vfs wrapper for ** unix that generates per-database log files of all disk activity. */ /* ** This module contains code for a wrapper VFS that causes a log of ** most VFS calls to be written into a file on disk. ** ** Each database connection creates a separate log file in the same ** directory as the original database and named after the original ** database. A unique suffix is added to avoid name collisions. ** Separate log files are used so that concurrent processes do not ** try to write log operations to the same file at the same instant, ** resulting in overwritten or comingled log text. ** ** Each individual log file records operations by a single database ** connection on both the original database and its associated rollback ** journal. ** ** The log files are in the comma-separated-value (CSV) format. The ** log files can be imported into an SQLite database using the ".import" ** command of the SQLite command-line shell for analysis. ** ** One technique for using this module is to append the text of this ** module to the end of a standard "sqlite3.c" amalgamation file then ** add the following compile-time options: ** ** -DSQLITE_EXTRA_INIT=sqlite3_register_vfslog ** -DSQLITE_USE_FCNTL_TRACE ** ** The first compile-time option causes the sqlite3_register_vfslog() ** function, defined below, to be invoked when SQLite is initialized. ** That causes this custom VFS to become the default VFS for all ** subsequent connections. The SQLITE_USE_FCNTL_TRACE option causes ** the SQLite core to issue extra sqlite3_file_control() operations ** with SQLITE_FCNTL_TRACE to give some indication of what is going ** on in the core. */ #include "sqlite3.h" #include <string.h> #include <assert.h> #include <stdio.h> #if SQLITE_OS_UNIX |
︙ | ︙ |