public void DeleteAllDocuments(ITenant factory) { factory.RunSql( $"delete from {Parent.Table.QualifiedName} where {DocumentMapping.DocumentTypeColumn} = '{Alias}'"); }
public void TruncateDocumentStorage(ITenant tenant) { tenant.RunSql($"truncate table {Events.DatabaseSchemaName}.mt_streams cascade"); }
public void DeleteAllDocuments(ITenant factory) { factory.RunSql($"delete from mt_events where type = '{Alias}'"); }
void IDocumentMapping.DeleteAllDocuments(ITenant factory) { var sql = "truncate {0} cascade".ToFormat(Table.QualifiedName); factory.RunSql(sql); }
public void TruncateDocumentStorage(ITenant tenant) { var sql = "truncate {0} cascade".ToFormat(TableName.QualifiedName); tenant.RunSql(sql); }
public void TruncateDocumentStorage(ITenant tenant) { tenant.RunSql( $"delete from {_parent.TableName.QualifiedName} where {SchemaConstants.DocumentTypeColumn} = '{_mapping.Alias}'"); }