The base directory this Piece is stored in.
Whether or not the Piece is enabled.
The file location where this Piece is stored.
The name of the Piece.
The store this Piece is from.
The absolute path to this piece
The type of piece this is
The addColumn method which inserts/creates a new table to the database.
Insert a new document into a directory.
The name of the directory
The document name
The unknown with all properties you want to insert into the document
Creates a new directory.
The name for the new directory
Delete a document from the table.
The name of the directory
The document name
Recursively deletes a directory.
The directory's name to delete
Disables this piece
Enables this piece
Get a document from a directory.
The name of the directory
The document name
Get all documents from a directory.
The name of the directory to fetch from
The entries to download, defaults to all keys in the directory
The getColumns method which gets the name of all columns.
Get all document names from a directory, filter by json.
The name of the directory to fetch from
Get a random document from a directory.
The name of the directory
Check if the document exists.
The name of the directory
The document name
Checks if a directory exists.
The name of the table you want to check
Initializes the database
Process the input from {@link Settings#update} or {@link Settings#reset} into a plain unknown that can be used for document-based database drivers. If it receives a non-array, it returns the value without further processing.
The data that has been updated
Reloads this piece
The newly loaded piece
The removeColumn method which inserts/creates a new table to the database.
Replace all the data from a document.
The name of the directory
The document name
The new data for the document
Shutdown method, this is called before the piece is unloaded.
Defines the JSON.stringify behavior of this piece.
Defines toString behavior for pieces
This piece name
Unloads this piece
Update a document from a directory.
The name of the directory
The document name
The unknown with all the properties you want to update
The updateColumn method which alters the datatype from a column.
Generated using TypeDoc
The client this Piece was created with.
0.0.1