> For the complete documentation index, see [llms.txt](https://yeasy.gitbook.io/openstack_code_neutron/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yeasy.gitbook.io/openstack_code_neutron/neutron/db/apipy.md).

# api.py

定义了一些数据库的配置方法，包括 configure\_db()启动一个数据库，创建一个引擎然后注册模型。 get\_engine()方法获取引擎。 get\_sessions()方法获取会话信息。
