Skip to main content

PostgreSQL query skill for NeuroCore

Project description

neurocore-skill-postgres

Run parameterized SQL against PostgreSQL from a NeuroCore flow (psycopg 3).

pip install neurocore-skill-postgres
export DATABASE_URL=postgresql://user:pass@localhost/db
components:
  - name: query
    type: postgres
    config:
      sql: "SELECT id, name FROM users WHERE active = %s"
flow:
  type: sequential
  steps:
    - component: query

Provide sql (and optional sql_params) via config or context. Results are written to postgres_rows (a list of row dicts; empty list for non-SELECT statements, which are committed).

Use parameterized queries (%s placeholders + sql_params) — never string interpolation — to avoid SQL injection.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neurocore_skill_postgres-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

neurocore_skill_postgres-0.1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file neurocore_skill_postgres-0.1.0.tar.gz.

File metadata

File hashes

Hashes for neurocore_skill_postgres-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c51ea6f71c4d5ab5a259128b1191943d30eab6dcb9db5e1e525addd64c5653ec
MD5 deec734a4901c652a0e9ecbd04d15ccd
BLAKE2b-256 e8cf991e75f1532f2f878aa03b21d557c5dbc9b43c2ed4b5af49772bacf1ec16

See more details on using hashes here.

File details

Details for the file neurocore_skill_postgres-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for neurocore_skill_postgres-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96eb99d3d77ab7592b31a44e50a9b131fc82454058179d5781fa28edaa362e3f
MD5 d927bebc9ee0b6b184a181fff171a2be
BLAKE2b-256 53f74bde13a13ef6b60f7f35acac2c58c38519efce986718445963a59affc73e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page