Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/blame/commit/fa6888e964257bb5d63c3c3e9f39166ca585562e/Marr.Data/QGen/DeleteQuery.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Marr.Data.Mapping;
|
|
|
|
|
using System.Data.Common;
|
|
|
|
|
|
|
|
|
|
namespace Marr.Data.QGen
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// This class creates a SQL delete query.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class DeleteQuery : IQuery
|
|
|
|
|
{
|
|
|
|
|
protected Table TargetTable { get; set; }
|
|
|
|
|
protected string WhereClause { get; set; }
|
|
|
|
|
protected Dialects.Dialect Dialect { get; set; }
|
|
|
|
|
|
|
|
|
|
public DeleteQuery(Dialects.Dialect dialect, Table targetTable, string whereClause)
|
|
|
|
|
{
|
|
|
|
|
Dialect = dialect;
|
|
|
|
|
TargetTable = targetTable;
|
|
|
|
|
WhereClause = whereClause;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Generate()
|
|
|
|
|
{
|
|
|
|
|
return string.Format("DELETE FROM {0} {1} ",
|
|
|
|
|
Dialect.CreateToken(TargetTable.Name),
|
|
|
|
|
WhereClause);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|