ArangoDB custom storage backend for umzug
const umzug = new Umzug({
storage: '@buckeye/umzug-arango',
storageOptions: {
// Set your storage options here.
},
});
The following items can be passed to the storage options object.
-
url
- Base URL of the ArangoDB server or list of server URLs. -
isAbsolute
- If this option is explicityly set totrue
, theurl
will be treated as the abolute database path and arangojs will not append the database path to it. -
arangoVersion
-> Numeric representation of the ArangoDB version the driver should expect. -
agent
<https.Agent> - An http Agent instance to use for connections. -
loadBalancingStrategy
- Determines the behavior when multiple URLs are provided. -
maxRetries
- Determines the behavior when a request fails because the underlying connection to the server could not be opened. -
username
- Database username to use for the connection. -
password
- Database password to use for the connection. -
bearerToken
- Authorization token header value to send to the the database for authentication. If this is set, thenusername
andpassword
will be ignored. -
database
- Name of the database we wish to connect to. -
collectionName
-> Name of the collection where we want to store the migration history.
The following JavaScript object contains all the default settings:
{
url: 'http://localhost:8529',
isAbsolute: false,
arangoVersion: 30000,
agent: null,
loadBalancingStrategy: "NONE",
maxRetries: 0,
username: "root",
password: "",
database: "umzug",
bearerToken: null,
collectionName: "umzug_migrations"
}