Skip to content

Commit

Permalink
Add general intro
Browse files Browse the repository at this point in the history
  • Loading branch information
Spayralbe committed Mar 28, 2024
1 parent 96e0f63 commit 43cd758
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Usage

omop-cdm provides SQLAlchemy declarative table definitions that can be used
to interact with an OMOP CDM via Python. This can be to more easily create all tables in
your database, but also to use them for data manipulation
(see [SQLAlchemy data manipulation](https://docs.sqlalchemy.org/en/20/tutorial/orm_data_manipulation.html)).

## Preparation

Before creating the OMOP CDM tables, the following must be available:
Expand Down Expand Up @@ -47,8 +52,8 @@ In this regular fashion, all tables are already bound to a SQLAlchemy
`DeclarativeBase` class. This approach leaves fewer options for CDM modification,
but is slightly simpler to use.

E.g. once the engine is defined, creating all the tables in a database, can be done
as follows:
E.g. once the engine is defined, creating all the tables in a database can be done
by simply running the following:

```python
with engine.begin() as conn:
Expand Down

0 comments on commit 43cd758

Please sign in to comment.