public StatementInterceptor(DebugServer server)
        {
            if (server == null)
            {
                throw new ArgumentNullException("server");
            }

            this.server         = server;
            this.connectHandler = this.OnConnect;
            this.traceHandler   = this.OnEvent;

            if (UnsafeNativeMethods.sqlite3_auto_extension(this.connectHandler) != UnsafeNativeMethods.SQLITE_OK)
            {
                throw new InvalidOperationException("SQLite could not register extension");
            }
        }
 internal static extern IntPtr sqlite3_trace_v2(IntPtr db, uint flags, SQLiteTrace trace, IntPtr data);