Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph Management #47

Merged
merged 4 commits into from
Nov 26, 2020
Merged

Graph Management #47

merged 4 commits into from
Nov 26, 2020

Conversation

ManevilleF
Copy link
Contributor

@ManevilleF ManevilleF commented Nov 24, 2020

This Pull request provides basic named graph management:

  • Creation
  • Deletion
  • Retrieval by id or global retrieval

Based on https://www.arangodb.com/docs/stable/http/gharial-management.html

Missing:

  • Graph edition (adding/removing vertex and edge collections)
  • Edge collection retrieval
  • Vertex collection retrieval

@ManevilleF ManevilleF mentioned this pull request Nov 24, 2020
@ManevilleF ManevilleF changed the title WIP: Graph Management Graph Management Nov 24, 2020
@ManevilleF ManevilleF marked this pull request as ready for review November 24, 2020 15:18
src/graph.rs Outdated
use serde::{Deserialize, Serialize};
use typed_builder::TypedBuilder;

pub const GHARIAL_API_PATH: &str = "_api/gharial";
Copy link
Owner

@fMeow fMeow Nov 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is GHARIAL_API_PATH a typo? Or am I missed something?

Plus, what about hide this const inside crate(pub(crate))? This path is a implementation detail to me, and thus should be hidden from user.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason it's called gharial but I can rename it to "graph" for the const.

I changed both new const into pub(crate) as you requested

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is fine, don't need to rename. Thank you.

@fMeow fMeow merged commit c9b4a53 into fMeow:master Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants