Class: SqliteDataset
A Dataset reading a compiled SQLite dump, opened read-only.
Extends
Section titled “Extends”DumpDataset
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SqliteDataset(
dumpPath):SqliteDataset
Parameters
Section titled “Parameters”dumpPath
Section titled “dumpPath”string
Returns
Section titled “Returns”SqliteDataset
Overrides
Section titled “Overrides”DumpDataset.constructor
Methods
Section titled “Methods”aliasGrams()
Section titled “aliasGrams()”aliasGrams(
bucket):Promise<Record<string,string[]>>
One bucket of the trigram set for fuzzy matching ({} when empty).
Parameters
Section titled “Parameters”bucket
Section titled “bucket”number
Returns
Section titled “Returns”Promise<Record<string, string[]>>
Inherited from
Section titled “Inherited from”DumpDataset.aliasGrams
aliasIndex()
Section titled “aliasIndex()”aliasIndex():
AliasIndex
The full alias index, built once from the aliases table.
Returns
Section titled “Returns”AliasIndex
Inherited from
Section titled “Inherited from”DumpDataset.aliasIndex
aliasShard()
Section titled “aliasShard()”aliasShard(
prefix):Promise<AliasEntry[]>
One prefix shard of the alias index ([] when there is none), as shardAliasIndex splits it.
Parameters
Section titled “Parameters”prefix
Section titled “prefix”string
Returns
Section titled “Returns”Promise<AliasEntry[]>
Inherited from
Section titled “Inherited from”DumpDataset.aliasShard
allAliasShards()
Section titled “allAliasShards()”allAliasShards():
AliasShardSet
Every prefix shard and trigram bucket, for the shard generator.
Returns
Section titled “Returns”AliasShardSet
Inherited from
Section titled “Inherited from”DumpDataset.allAliasShards
close()
Section titled “close()”close():
void
Returns
Section titled “Returns”void
findWorkIds()
Section titled “findWorkIds()”findWorkIds(
provider,providerId):Promise<string[]>
Work ids carrying this provider ID, sorted ascending.
Parameters
Section titled “Parameters”provider
Section titled “provider”"anidb" | "anilist" | "mal" | "kitsu" | "tvdb_show" | "tmdb_show" | "tmdb_movie" | "imdb"
providerId
Section titled “providerId”string
Returns
Section titled “Returns”Promise<string[]>
Inherited from
Section titled “Inherited from”DumpDataset.findWorkIds
getGroup()
Section titled “getGroup()”getGroup(
id):Promise<GroupRecord|undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<GroupRecord | undefined>
Inherited from
Section titled “Inherited from”DumpDataset.getGroup
getSequence()
Section titled “getSequence()”getSequence(
id):Promise<SequenceRecord|undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<SequenceRecord | undefined>
Inherited from
Section titled “Inherited from”DumpDataset.getSequence
getWork()
Section titled “getWork()”getWork(
id):Promise<WorkRecord|undefined>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<WorkRecord | undefined>
Inherited from
Section titled “Inherited from”DumpDataset.getWork
groups()
Section titled “groups()”groups():
Promise<GroupRecord[]>
Every release group, sorted by id.
Returns
Section titled “Returns”Promise<GroupRecord[]>
Inherited from
Section titled “Inherited from”DumpDataset.groups
listGroupIds()
Section titled “listGroupIds()”listGroupIds():
string[]
Returns
Section titled “Returns”string[]
Inherited from
Section titled “Inherited from”DumpDataset.listGroupIds
listRefs()
Section titled “listRefs()”listRefs():
object[]
Returns
Section titled “Returns”object[]
Inherited from
Section titled “Inherited from”DumpDataset.listRefs
listSequenceIds()
Section titled “listSequenceIds()”listSequenceIds():
string[]
Returns
Section titled “Returns”string[]
Inherited from
Section titled “Inherited from”DumpDataset.listSequenceIds
listWorkIds()
Section titled “listWorkIds()”listWorkIds():
string[]
Everything below is for exporting the dump (static shards), not for lookups.
Returns
Section titled “Returns”string[]
Inherited from
Section titled “Inherited from”DumpDataset.listWorkIds
meta()
Section titled “meta()”meta():
Promise<Meta>
Returns
Section titled “Returns”Promise<Meta>
Inherited from
Section titled “Inherited from”DumpDataset.meta
This product uses the TMDB API but is not endorsed or certified by TMDB.