AttachmentTable
Extends
Table
Constructors
new AttachmentTable()
new AttachmentTable(options?): AttachmentTable
Parameters
Parameter | Type |
---|---|
options ? | AttachmentTableOptions |
Returns
Overrides
Table.constructor
Accessors
columnMap
get columnMap(): Columns
Returns
Columns
columns
get columns(): Column[]
Returns
Column
[]
indexes
get indexes(): Index[]
Returns
Index
[]
insertOnly
get insertOnly(): boolean
Returns
boolean
internalName
get internalName(): string
Returns
string
localOnly
get localOnly(): boolean
Returns
boolean
name
get name(): string
Returns
string
validName
get validName(): boolean
Returns
boolean
viewName
get viewName(): string
Returns
string
viewNameOverride
get viewNameOverride(): string
Returns
string
Methods
toJSON()
toJSON(): {
columns: {
name: string;
type: ColumnType;
}[];
indexes: {
columns: {
ascending: boolean;
name: string;
type: ColumnType;
}[];
name: string;
}[];
insert_only: boolean;
local_only: boolean;
name: string;
view_name: string;
}
Returns
{
columns: {
name: string;
type: ColumnType;
}[];
indexes: {
columns: {
ascending: boolean;
name: string;
type: ColumnType;
}[];
name: string;
}[];
insert_only: boolean;
local_only: boolean;
name: string;
view_name: string;
}
Member | Type |
---|---|
columns | { |
name : string ; | |
type : ColumnType ; | |
}[] | |
indexes | { |
columns : { |
`ascending`: `boolean`;
`name`: `string`;
`type`: `ColumnType`;
\}[];
name
: string
;
}[] |
| insert_only
| boolean
|
| local_only
| boolean
|
| name
| string
|
| view_name
| string
|
Inherited from
Table.toJSON
validate()
validate(): void
Returns
void
Inherited from
Table.validate
createInsertOnly()
static createInsertOnly(options): Table<ColumnsType>
Parameters
Parameter | Type |
---|---|
options | TableOptions |
Returns
Table
<ColumnsType
>
Inherited from
Table.createInsertOnly
createLocalOnly()
static createLocalOnly(options): Table<ColumnsType>
Parameters
Parameter | Type |
---|---|
options | TableOptions |
Returns
Table
<ColumnsType
>
Inherited from
Table.createLocalOnly
createTable()
static createTable(name, table): Table<ColumnsType>
Create a table.
Parameters
Parameter | Type |
---|---|
name | string |
table | Table <ColumnsType > |
Returns
Table
<ColumnsType
>
Inherited from
Table.createTable
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.