pub enum Credentials {
Sqlite {
path: Box<str>,
},
Turso {
url: Box<str>,
auth_token: Option<Box<str>>,
},
Postgres(PostgresCreds),
D1 {
account_id: Box<str>,
database_id: Box<str>,
token: Box<str>,
},
AwsDataApi {
database: Box<str>,
secret_arn: Box<str>,
resource_arn: Box<str>,
},
}Expand description
Database credentials - validated and typed
Variants§
Sqlite
Local SQLite file
Turso
Turso/LibSQL
Postgres(PostgresCreds)
PostgreSQL
D1
Cloudflare D1 over the HTTP API.
Used by the CLI to hit the Cloudflare REST endpoint for schema ops
(push/pull/migrate). The drizzle runtime itself uses the worker
D1Database binding — not these credentials.
AwsDataApi
AWS RDS Data API (Aurora Serverless PostgreSQL).
The region isn’t stored here — the AWS SDK pulls it from the standard
credential chain (env vars, ~/.aws/config, instance metadata). This
matches drizzle-kit’s TypeScript config exactly.
Trait Implementations§
Source§impl Clone for Credentials
impl Clone for Credentials
Source§fn clone(&self) -> Credentials
fn clone(&self) -> Credentials
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnsafeUnpin for Credentials
impl UnwindSafe for Credentials
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more