File: __init__.py

package info (click to toggle)
python-django-pgbulk 3.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 540 kB
  • sloc: python: 1,814; makefile: 101; sh: 9
file content (23 lines) | stat: -rw-r--r-- 606 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""
Bulk Postgres upsert and update functions:

- Use [pgbulk.upsert][] to do an `INSERT ON CONFLICT` statement.
- Use [pgbulk.update][] to do a bulk `UPDATE` statement.
- Use [pgbulk.copy][] to do a `COPY FROM` statement.
- Use [pgbulk.aupsert][], [pgbulk.aupdate][], or [pgbulk.acopy][] for async versions.
"""

from pgbulk.core import UpdateField, UpsertResult, acopy, aupdate, aupsert, copy, update, upsert
from pgbulk.version import __version__

__all__ = [
    "acopy",
    "update",
    "aupdate",
    "copy",
    "upsert",
    "aupsert",
    "UpsertResult",
    "UpdateField",
    "__version__",
]