Beispiel #1
0
        private void CleanupConnection(DuckDbConnection connection)
        {
            var builder = DuckDbConnectionStringBuilder.Parse(connection.ConnectionString);

            File.Delete(builder.File);
            File.Delete(builder.File + ".wal");
        }
Beispiel #2
0
        private DuckDbConnection DuplicateConnection(DuckDbConnection connection)
        {
            var builder = DuckDbConnectionStringBuilder.Parse(connection.ConnectionString);

            return(new DuckDbConnection($"File={builder.File}"));
        }