mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 14:06:08 +00:00
Shrink database.zig and comment
This commit is contained in:
parent
b81c6dfe91
commit
21bf237437
@ -1,48 +1,7 @@
|
|||||||
pub const database = .{
|
pub const database = .{
|
||||||
// Null adapter fails when a database call is invoked.
|
// This configuration is used for CI
|
||||||
.development = .{
|
// in GitHub
|
||||||
.adapter = .null,
|
|
||||||
},
|
|
||||||
.testing = .{
|
.testing = .{
|
||||||
.adapter = .postgresql,
|
.adapter = .postgresql,
|
||||||
},
|
},
|
||||||
.production = .{
|
|
||||||
.adapter = .null,
|
|
||||||
},
|
|
||||||
// PostgreSQL adapter configuration.
|
|
||||||
//
|
|
||||||
// All options except `adapter` can be configured using environment variables:
|
|
||||||
//
|
|
||||||
// * JETQUERY_HOSTNAME
|
|
||||||
// * JETQUERY_PORT
|
|
||||||
// * JETQUERY_USERNAME
|
|
||||||
// * JETQUERY_PASSWORD
|
|
||||||
// * JETQUERY_DATABASE
|
|
||||||
//
|
|
||||||
// .testing = .{
|
|
||||||
// .adapter = .postgresql,
|
|
||||||
// .hostname = "localhost",
|
|
||||||
// .port = 5432,
|
|
||||||
// .username = "postgres",
|
|
||||||
// .password = "password",
|
|
||||||
// .database = "myapp_testing",
|
|
||||||
// },
|
|
||||||
//
|
|
||||||
// .development = .{
|
|
||||||
// .adapter = .postgresql,
|
|
||||||
// .hostname = "localhost",
|
|
||||||
// .port = 5432,
|
|
||||||
// .username = "postgres",
|
|
||||||
// .password = "password",
|
|
||||||
// .database = "myapp_development",
|
|
||||||
// },
|
|
||||||
//
|
|
||||||
// .production = .{
|
|
||||||
// .adapter = .postgresql,
|
|
||||||
// .hostname = "localhost",
|
|
||||||
// .port = 5432,
|
|
||||||
// .username = "postgres",
|
|
||||||
// .password = "password",
|
|
||||||
// .database = "myapp_production",
|
|
||||||
// },
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user