mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-11-01 00:12:30 +01:00
261ce772de
there is a broken test.
34 lines
710 B
C#
34 lines
710 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Marr.Data.QGen.Dialects
|
|
{
|
|
public class SqliteDialect : Dialect
|
|
{
|
|
public override string IdentityQuery
|
|
{
|
|
get
|
|
{
|
|
return "SELECT last_insert_rowid();";
|
|
}
|
|
}
|
|
|
|
public override string StartsWithFormat
|
|
{
|
|
get { return "({0} LIKE {1} || '%')"; }
|
|
}
|
|
|
|
public override string EndsWithFormat
|
|
{
|
|
get { return "({0} LIKE '%' || {1})"; }
|
|
}
|
|
|
|
public override string ContainsFormat
|
|
{
|
|
get { return "({0} LIKE '%' || {1} || '%')"; }
|
|
}
|
|
}
|
|
}
|