mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-15 08:06:21 +00:00
11 lines
276 B
Rust
11 lines
276 B
Rust
use codex_proxy_rs::admin::keys::service::SqliteClientKeyStore;
|
|
use sqlx::SqlitePool;
|
|
|
|
pub(crate) async fn insert_client_api_key(pool: &SqlitePool) -> String {
|
|
SqliteClientKeyStore::new(pool.clone())
|
|
.create("test")
|
|
.await
|
|
.unwrap()
|
|
.key
|
|
}
|