Namespace
The Namespace
class is an internal class that represents a Glacier Namespace.
Properties
name
The name of current namespace.
Methods
dataset
Returns a reference to a Glacier Dataset under current namespace.
Type
class Namespace {
dataset(name: string): Dataset
}
createDataset
Create a new Dataset with the specified name under current namespace.
Type
class Namespace {
createDataset(name: string): Promise<InsertResult>
}
queryDataset
Get details about a dataset, including all its collections.
Type
interface CollectionRecord {
collection: string
owner: string
network: string
schema: string
sepId: number
createdAt: number
updatedAt: number
}
interface DatasetRecord {
owner: string
network: string
namespace: string
dataset: string
sqpId: number
collections: CollectionRecord[]
createdAt: number
updatedAt: number
}
class Namespace {
queryDataset(name: string): Promise<DatasetRecord>
}