public BansheeModelCache(HyenaSqliteConnection connection, string uuid, ICacheableDatabaseModel model, SqliteModelProvider <T> provider) : base(connection, uuid, model, provider) { }
public Database(string db_path) : base(db_path) { HyenaSqliteCommand.LogAll = ApplicationContext.CommandLine.Contains("debug-sql"); Execute("PRAGMA cache_size = ?", 32768 * 4); Execute("PRAGMA synchronous = OFF"); Execute("PRAGMA temp_store = MEMORY"); Execute("PRAGMA count_changes = OFF"); Execute("PRAGMA journal_mode = TRUNCATE"); Config = new SqliteModelProvider <Config> (this, "Config", true); SampleProvider = new SqliteModelProvider <MultiUserSample> (this, "Samples", true); MetricProvider = new SqliteModelProvider <Metric> (this, "Metrics", true); Users = new SqliteModelProvider <User> (this, "Users", true); Execute("CREATE INDEX IF NOT EXISTS SampleUserMetricIndex ON Samples (UserID, MetricID)"); }
public static void Init() { provider = new CacheableSqliteModelProvider <FeedEnclosure> (FeedsManager.Instance.Connection, "PodcastEnclosures"); }
public static void Init() { provider = new FeedItemProvider(FeedsManager.Instance.Connection); }
public DatabaseFilterListModel(string name, string label, Banshee.Sources.DatabaseSource source, DatabaseTrackListModel trackModel, HyenaSqliteConnection connection, SqliteModelProvider <T> provider, U selectAllItem, string uuid) : base(trackModel) { this.source = source; FilterName = name; FilterLabel = label; select_all_item = selectAllItem; this.connection = connection; cache = new BansheeModelCache <T> (connection, uuid, this, provider); HasSelectAllItem = true; }
static TrackAnalysis() { Provider = new SqliteModelProvider <TrackAnalysis> (ServiceManager.DbConnection, "MirageTrackAnalysis", true); }
static TrackAnalysis () { Provider = new SqliteModelProvider<TrackAnalysis> (ServiceManager.DbConnection, "MirageTrackAnalysis", true); }