@slates-integrations/postgresql 0.2.0-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # <img src="https://provider-logos.metorial-cdn.com/postgresql.png" height="20"> Postgresql
2
+
3
+ Query, insert, update, and delete data in PostgreSQL relational databases. Explore schemas and tables, manage schemas, tables, indexes, views, materialized views, and database roles, and poll tables for row changes using timestamp or incrementing columns.
4
+
5
+ ## Tools
6
+
7
+ ### Delete Rows
8
+
9
+ Delete rows from a PostgreSQL table based on a WHERE condition. Supports returning the deleted rows and requires explicit confirmation for full-table deletes.
10
+
11
+ ### Describe Table
12
+
13
+ Get detailed schema information for a specific table, including columns, data types, constraints, indexes, and foreign keys. Useful for understanding table structure before building queries or modifying schemas.
14
+
15
+ ### Execute SQL Query
16
+
17
+ Execute an arbitrary SQL query against the PostgreSQL database. Supports all SQL operations including SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, and more. Returns column metadata and result rows for SELECT queries, or affected row counts for DML statements. Supports complex queries with joins, subqueries, CTEs, window functions, and aggregations.
18
+
19
+ ### Select Query
20
+
21
+ Run a read-only SELECT query against the PostgreSQL database. Use this tool for data retrieval, reporting, analytics, joins, subqueries, read-only CTEs, window functions, and aggregations. Non-SELECT SQL is rejected and the query runs inside a PostgreSQL READ ONLY transaction.
22
+
23
+ ### Insert Rows
24
+
25
+ Insert one or more rows into a PostgreSQL table. Provide the data as an array of objects where keys are column names and values are the data to insert. Supports inserting multiple rows in a single operation and can optionally return the inserted rows.
26
+
27
+ ### List Schemas
28
+
29
+ List all schemas in the PostgreSQL database with their table counts and sizes. Useful for exploring the database structure and understanding the organization of tables across schemas.
30
+
31
+ ### Manage Schemas
32
+
33
+ Create, rename, or drop PostgreSQL schemas. Drop operations require explicit confirmation and can optionally cascade to contained objects.
34
+
35
+ ### List Tables
36
+
37
+ List all tables in the PostgreSQL database, optionally filtered by schema. Returns table names, schemas, row estimates, and size information. Also supports listing views and materialized views.
38
+
39
+ ### Manage Indexes
40
+
41
+ Create or drop indexes on PostgreSQL tables. Supports B-tree, Hash, GIN, GiST, and other index types. Can create unique indexes, partial indexes with WHERE conditions, and multi-column indexes.
42
+
43
+ ### Manage Roles
44
+
45
+ Manage PostgreSQL roles and their privileges. Supports creating and dropping roles, as well as granting and revoking privileges on databases, schemas, tables, and other objects.
46
+
47
+ ### Manage Table
48
+
49
+ Create, alter, or drop a PostgreSQL table. Supports creating tables with columns, constraints, and foreign keys. For altering tables, supports adding columns, dropping columns, renaming columns, altering column types, and renaming the table.
50
+
51
+ ### Manage Views
52
+
53
+ Create and drop PostgreSQL views or materialized views, and refresh materialized views. View definitions are restricted to a single read query for safer structured management.
54
+
55
+ ### Update Rows
56
+
57
+ Update rows in a PostgreSQL table based on a WHERE condition. Specify the columns to update and their new values. Supports returning updated rows and allows complex WHERE conditions.
58
+
59
+ ## License
60
+
61
+ This integration is licensed under the [FSL-1.1](https://github.com/metorial/metorial-platform/blob/dev/LICENSE).
62
+
63
+ <div align="center">
64
+ <sub>Built with ❤️ by <a href="https://metorial.com">Metorial</a></sub>
65
+ </div>