Skip to content

Commit

Permalink
Major refactor to support HAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans committed May 6, 2024
1 parent ed03734 commit 3b38a03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion documentation/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ URI that contains both dialect and driver.

The method to prepare views described [here](https://github.com/sqlalchemy/sqlalchemy/wiki/Views#sqlalchemy-14-20-version) is available in this library.

This allows creating views like this:
This allows preparing views like this:
```
class DBOrgType(Base):
__tablename__ = "org_type"
Expand Down Expand Up @@ -174,6 +174,8 @@ date_view = Database.prepare_view(date_view_params)
date_view = Database.prepare_views([date_view_params])[0]
```

View preparation must be done before calling Base.metadata.create_all.

## PostgreSQL specific

There is a PostgreSQL specific call that only returns when the PostgreSQL database
Expand Down

0 comments on commit 3b38a03

Please sign in to comment.