Skip to content

refactoring: change driver to command type #10

@tamtam180

Description

@tamtam180
  • Command
class createDocumentCommand extends Command {
  String database;
  String collectionName;
  String documentKey;
  Object value;
  Boolean createCollection;
  Boolean waitForSync;
  boolean raw;
}
  • CommandFactory
CreateDocumentCommandFactory.create(long collectionId, Object value);
CreateDocumentCommandFactory.create(String collectionName, Object value);
CreateDocumentCommandFactory.create(long collectionId, String documentKey, Object value);
CreateDocumentCommandFactory.create(String collectionName, String documentKey, Object value);
  • Driver
class ArangoCommandDriver extends BaseArangoDriver {
}
driver.execute(createDocumentCommand);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions