mirror of
https://github.com/ent/ent.git
synced 2026-04-28 05:30:56 +03:00
website/blog: add in base.pg.hcl notes (#4413)
This commit is contained in:
@@ -182,7 +182,18 @@ using the statements in [this file](https://github.com/rotemtam/entrag/blob/e917
|
||||
|
||||
:::
|
||||
|
||||
Now, let's create our Atlas configuration which composes the `base.pg.hcl` file with the Ent schema:
|
||||
Now, let's create our base configuration `base.pg.hcl` which provides the vector extension for the public schema:
|
||||
|
||||
```hcl title="base.pg.hcl"
|
||||
schema "public" {
|
||||
}
|
||||
|
||||
extension "vector" {
|
||||
schema = schema.public
|
||||
}
|
||||
```
|
||||
|
||||
Now, let's create our Atlas configuration which composes the base.pg.hcl file with the Ent schema:
|
||||
|
||||
```hcl title="atlas.hcl"
|
||||
data "composite_schema" "schema" {
|
||||
|
||||
Reference in New Issue
Block a user