schemainspect-3.1.1663587362
3.1.1663587362
3.1.1663497159
3.1.1663485973
3.1.1663481360
3.1.1663480743
3.1.1663062229
3.1.1658648837
3.1.1652015119
3.1.1651924499
3.1.1651924172
3.1.1651839513
3.1.1648463413
3.1.1648462274
3.1.1647609922
3.1.1647608289
3.1.1647147918
3.0.1616029793
3.0.1611806281
2.0.1611793281
0.1.1611724890
0.1.1610933302
0.1.1610498640
0.1.1607225519
0.1.1607224896
0.1.1603448192
0.1.1603009162
0.1.1602274168
0.1.1601964119
0.1.1601518481
0.1.1601350901
0.1.1600993299
0.1.1599464781
0.1.1599463750
0.1.1599463524
0.1.1599450586
0.1.1599449889
0.1.1599449022
0.1.1599448365
0.1.1597727684
0.1.1596263228
0.1.1595673757
0.1.1595570852
0.1.1595243889
0.1.1593605722
0.1.1593565676
0.1.1593518991
0.1.1592300770
0.1.1592273867
0.1.1591162156
0.1.1588915531
0.1.1587214651
0.1.1587211753
0.1.1586428725
0.1.1585871494
0.1.1576717677
0.1.1576714717
0.1.1576671221
0.1.1576671014
0.1.1576670260
0.1.1576669988
0.1.1575949847
0.1.1571629429
0.1.1556103540
0.1.1553852578
0.1.1553817909
0.1.1552220105
0.1.1552209928
0.1.1551953719
0.1.1551695490
0.1.1548143332
0.1.1547903959
0.1.1547549341
0.1.1547547637
0.1.1544328901
0.1.1543708870
0.1.1543655873
0.1.1543633065
0.1.1542708492
0.1.1542622403
0.1.1542097438
0.1.1542089233
0.1.1541069836
0.1.1540897086
0.1.1540724771
0.1.1535502343
0.1.1533120907
0.1.1533117668
0.1.1532255552
0.1.1530867186
0.1.1525395046
0.1.1525394090
0.1.1521505759
0.1.1521373866
0.1.1519171230
0.1.1509328651
0.1.1503198422
0.1.1502453174
0.1.1500870460
0.1.1495522896
0.1.1494928171
0.1.1488410765
0.1.1488167750
0.1.1486292158
0.1.1472341830
0.1.1470831013
0.1.1470583264
0.1.1469700903
0.1.1469409161
3.1.1663587362
3.1.1663497159
3.1.1663485973
3.1.1663481360
3.1.1663480743
3.1.1663062229
3.1.1658648837
3.1.1652015119
3.1.1651924499
3.1.1651924172
3.1.1651839513
3.1.1648463413
3.1.1648462274
3.1.1647609922
3.1.1647608289
3.1.1647147918
3.0.1616029793
3.0.1611806281
2.0.1611793281
0.1.1611724890
0.1.1610933302
0.1.1610498640
0.1.1607225519
0.1.1607224896
0.1.1603448192
0.1.1603009162
0.1.1602274168
0.1.1601964119
0.1.1601518481
0.1.1601350901
0.1.1600993299
0.1.1599464781
0.1.1599463750
0.1.1599463524
0.1.1599450586
0.1.1599449889
0.1.1599449022
0.1.1599448365
0.1.1597727684
0.1.1596263228
0.1.1595673757
0.1.1595570852
0.1.1595243889
0.1.1593605722
0.1.1593565676
0.1.1593518991
0.1.1592300770
0.1.1592273867
0.1.1591162156
0.1.1588915531
0.1.1587214651
0.1.1587211753
0.1.1586428725
0.1.1585871494
0.1.1576717677
0.1.1576714717
0.1.1576671221
0.1.1576671014
0.1.1576670260
0.1.1576669988
0.1.1575949847
0.1.1571629429
0.1.1556103540
0.1.1553852578
0.1.1553817909
0.1.1552220105
0.1.1552209928
0.1.1551953719
0.1.1551695490
0.1.1548143332
0.1.1547903959
0.1.1547549341
0.1.1547547637
0.1.1544328901
0.1.1543708870
0.1.1543655873
0.1.1543633065
0.1.1542708492
0.1.1542622403
0.1.1542097438
0.1.1542089233
0.1.1541069836
0.1.1540897086
0.1.1540724771
0.1.1535502343
0.1.1533120907
0.1.1533117668
0.1.1532255552
0.1.1530867186
0.1.1525395046
0.1.1525394090
0.1.1521505759
0.1.1521373866
0.1.1519171230
0.1.1509328651
0.1.1503198422
0.1.1502453174
0.1.1500870460
0.1.1495522896
0.1.1494928171
0.1.1488410765
0.1.1488167750
0.1.1486292158
0.1.1472341830
0.1.1470831013
0.1.1470583264
0.1.1469700903
0.1.1469409161
توضیحات
Schema inspection for PostgreSQL (and possibly others)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | schemainspect-3.1.1663587362 |
| نام | schemainspect |
| نسخه کتابخانه | 3.1.1663587362 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Robert Lechte |
| ایمیل نویسنده | robertlechte@gmail.com |
| آدرس صفحه اصلی | https://github.com/djrobstep/schemainspect |
| آدرس اینترنتی | https://pypi.org/project/schemainspect/ |
| مجوز | Unlicense |
# `schemainspect`: SQL Schema Inspection
Schema inspection for PostgreSQL (and potentially others in the future).
Inspects tables, views, materialized views, constraints, indexes, sequences, enums, functions, and extensions. Handles table partitioning and inheritance.
**Limitations:** Function inspection only confirmed to work with SQL/PLPGSQL languages so far.
## Basic Usage
Get an inspection object from an already opened SQLAlchemy session or connection as follows:
from schemainspect import get_inspector
from sqlbag import S
with S('postgresql:///example') as s:
i = get_inspector(s)
The inspection object has attributes for tables, views, and all the other things it tracks. At each of these attributes you'll find a dictionary (OrderedDict) mapping from fully-qualified-and-quoted-name-of-thing-in-database to information object.
For instance, the information about a table *books* would be accessed as follows:
>>> books_table = i.tables['"public"."books"']
>>> books_table.name
'books'
>>> books_table.schema
'public'
>>> [each.name for each in books_table.columns]
['id', 'title', 'isbn']
## Documentation
Documentation is a bit patchy at the moment. Watch this space!
## Author Credits
Initial development, maintenance:
- [djrobstep](https://github.com/djrobstep)
Contributions:
- [BenSjoberg](https://github.com/BenSjoberg)
- [johto](https://github.com/johto)
## Install
Install with [pip](https://pip.pypa.io):
$ pip install schemainspect
To install psycopg2 (the PostgreSQL driver) at the same time as well:
$ pip install schemainspect[pg]
نیازمندی
| مقدار | نام |
|---|---|
| - | sqlalchemy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4 | Python |
نحوه نصب
نصب پکیج whl schemainspect-3.1.1663587362:
pip install schemainspect-3.1.1663587362.whl
نصب پکیج tar.gz schemainspect-3.1.1663587362:
pip install schemainspect-3.1.1663587362.tar.gz