18 lines
972 B
Go
18 lines
972 B
Go
package catalogue
|
|
|
|
// Provision names that say a role where the consumer is coupled to an implementation.
|
|
//
|
|
// **A consumer's code is written against PostgreSQL or against SQL Server, never against a
|
|
// database** (novox/hq ADR 0027). A requirement naming the role matches any engine, resolves as
|
|
// satisfied, deploys, and fails on the first query — with nothing connecting the error back to a
|
|
// match made elsewhere by something that thought it had done its job.
|
|
//
|
|
// Refused rather than documented, because the previous naming *was* the documented convention.
|
|
// A rule states how it is checked (novox/hq 00-META/how-we-build.md §5).
|
|
var engineGeneric = map[string]string{
|
|
"database": "postgres-database, mssql-database, mariadb-database",
|
|
"db": "postgres-database, mssql-database, mariadb-database",
|
|
"sql": "postgres-database, mssql-database, mariadb-database",
|
|
"sql-database": "postgres-database, mssql-database, mariadb-database",
|
|
}
|