appctl 0.2.1

One command. Any app. Full AI control. The universal AI CLI for any web app, database, or service.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use appctl::sync::{SyncPlugin, db::DbSync};

#[tokio::test]
#[ignore = "set APPCTL_TEST_POSTGRES_URL to run against a live postgres instance"]
async fn introspects_postgres_schema_when_database_url_is_available() {
    let url =
        std::env::var("APPCTL_TEST_POSTGRES_URL").expect("APPCTL_TEST_POSTGRES_URL must be set");
    let schema = DbSync::new(url)
        .introspect()
        .await
        .expect("db sync succeeds");
    assert!(!schema.resources.is_empty());
}