AttachmentTable
Internal
AttachmentTable defines the schema for the attachment queue table.
Extends
Constructors
new AttachmentTable()
new AttachmentTable(options?): AttachmentTable
Parameters
| Parameter | Type |
|---|---|
options? | AttachmentTableOptions |
Returns
Overrides
Accessors
columnMap
Get Signature
get columnMap(): Columns
Returns
Columns
Inherited from
columns
Get Signature
get columns(): Column[]
Returns
Column[]
Inherited from
ignoreEmptyUpdates
Get Signature
get ignoreEmptyUpdates(): boolean
Returns
boolean
Inherited from
indexes
Get Signature
get indexes(): Index[]
Returns
Index[]
Inherited from
insertOnly
Get Signature
get insertOnly(): boolean
Returns
boolean
Inherited from
internalName
Get Signature
get internalName(): string
Returns
string
Inherited from
localOnly
Get Signature
get localOnly(): boolean
Returns
boolean
Inherited from
name
Get Signature
get name(): string
Returns
string
Inherited from
trackMetadata
Get Signature
get trackMetadata(): boolean
Returns
boolean
Inherited from
trackPrevious
Get Signature
get trackPrevious(): boolean | TrackPreviousOptions
Returns
boolean | TrackPreviousOptions
Inherited from
validName
Get Signature
get validName(): boolean
Returns
boolean
Inherited from
viewName
Get Signature
get viewName(): string
Returns
string
Inherited from
viewNameOverride
Get Signature
get viewNameOverride(): undefined | string
Returns
undefined | string
Inherited from
Methods
copyWithName()
copyWithName(name): Table
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
Inherited from
toJSON()
toJSON(): {
columns: {
name: string;
type: undefined | ColumnType;
}[];
ignore_empty_update: boolean;
include_metadata: boolean;
include_old: any;
include_old_only_when_changed: boolean;
indexes: {
columns: {
ascending: undefined | boolean;
name: string;
type: ColumnType;
}[];
name: string;
}[];
insert_only: boolean;
local_only: boolean;
name: string;
view_name: string;
}
Returns
{
columns: {
name: string;
type: undefined | ColumnType;
}[];
ignore_empty_update: boolean;
include_metadata: boolean;
include_old: any;
include_old_only_when_changed: boolean;
indexes: {
columns: {
ascending: undefined | boolean;
name: string;
type: ColumnType;
}[];
name: string;
}[];
insert_only: boolean;
local_only: boolean;
name: string;
view_name: string;
}
| Name | Type |
|---|---|
columns | { name: string; type: undefined | ColumnType; }[] |
ignore_empty_update | boolean |
include_metadata | boolean |
include_old | any |
include_old_only_when_changed | boolean |
indexes | { columns: { ascending: undefined | boolean; name: string; type: ColumnType; }[]; name: string; }[] |
insert_only | boolean |
local_only | boolean |
name | string |
view_name | string |
Inherited from
validate()
validate(): void
Returns
void
Inherited from
createInsertOnly()
static createInsertOnly(options): Table<ColumnsType>
Parameters
| Parameter | Type |
|---|---|
options | TableOptions |
Returns
Inherited from
createLocalOnly()
static createLocalOnly(options): Table<ColumnsType>
Parameters
| Parameter | Type |
|---|---|
options | TableOptions |
Returns
Inherited from
createTable()
static createTable(name, table): Table<ColumnsType>
Create a table.
Parameters
| Parameter | Type |
|---|---|
name | string |
table | Table |
Returns
Deprecated
This was only only included for TableV2 and is no longer necessary. Prefer to use new Table() directly.
TODO remove in the next major release.