* @deprecated Deprecated in favor of * [ViewConfig.project](configs#dataform-ActionConfig-ViewConfig). * * Sets the * Sets the database (Google Cloud project ID) in which to create the output of this action.
(database: string)
| 438 | * Sets the database (Google Cloud project ID) in which to create the output of this action. |
| 439 | */ |
| 440 | public database(database: string) { |
| 441 | this.proto.target = this.applySessionToTarget( |
| 442 | dataform.Target.create({ ...this.proto.target, database }), |
| 443 | this.session.projectConfig, |
| 444 | this.proto.fileName, |
| 445 | { validateTarget: true } |
| 446 | ); |
| 447 | return this; |
| 448 | } |
| 449 | |
| 450 | /** |
| 451 | * @deprecated Deprecated in favor of |
no test coverage detected