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

crazy idea: collect netpulse data in a single database #60

Open
PlexSheep opened this issue Jan 14, 2025 · 1 comment
Open

crazy idea: collect netpulse data in a single database #60

PlexSheep opened this issue Jan 14, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@PlexSheep
Copy link
Owner

PlexSheep commented Jan 14, 2025

I could use couchdb since the stuff implements Serialize anyway. The database could have "Substores" (identifying by the hostname/ip/other_id) for the actual store data. I could just use couch_rs to do the database stuff.

@PlexSheep PlexSheep added the enhancement New feature or request label Jan 14, 2025
@PlexSheep
Copy link
Owner Author

The couch_rs documentation shows that a struct can be made into a database object just like this:

#[derive(Serialize, Deserialize, CouchDocument)]
pub struct UserDetails {
   #[serde(skip_serializing_if = "String::is_empty")]
    pub _id: DocumentId,
    #[serde(skip_serializing_if = "String::is_empty")]
    pub _rev: String,
    #[serde(rename = "firstName")]
    pub first_name: Option<String>,
    #[serde(rename = "lastName")]
    pub last_name: String,
}

Need to do more research though, and having a file backend is important too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant