2013-03-30 21:56:34 +00:00
|
|
|
|
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();";
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-05-27 23:35:53 +00:00
|
|
|
|
|
|
|
|
|
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} || '%')"; }
|
|
|
|
|
}
|
2013-03-30 21:56:34 +00:00
|
|
|
|
}
|
|
|
|
|
}
|