mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-28 18:59:54 +00:00
28 lines
623 B
C#
28 lines
623 B
C#
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} || '%')"; }
|
|
}
|
|
}
|
|
}
|