MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / new

Method new

crates/cli/src/api.rs:54–57  ·  view source on GitHub ↗
(con: Connection)

Source from the content-addressed store, hash-verified

52
53impl ClientApi {
54 pub fn new(con: Connection) -> Self {
55 let client = build_client(&con);
56 Self { con, client }
57 }
58
59 pub fn sql(&self) -> RequestBuilder {
60 self.client.post(self.con.db_uri("sql"))

Callers

nothing calls this directly

Calls 1

build_clientFunction · 0.85

Tested by

no test coverage detected