bevy_postgrest/
lib.rs

1/// Ported from https://crates.io/crates/postgrest
2mod builder;
3mod client;
4pub mod filter;
5
6use bevy::prelude::*;
7pub use client::Client;
8
9pub struct PostgrestPlugin {
10    pub endpoint: String,
11}
12
13impl PostgrestPlugin {
14    pub fn new(endpoint: String) -> Self {
15        Self { endpoint }
16    }
17}
18
19impl Plugin for PostgrestPlugin {
20    fn build(&self, app: &mut App) {
21        app.insert_resource(Client::new(self.endpoint.clone()));
22    }
23}