# postgrelize > PostgreSQL-only ORM for Node.js and TypeScript that implements the Sequelize v6 public API (drop-in) and adds PostgreSQL features: ON CONFLICT upserts, MERGE, CTEs, COPY, LISTEN/NOTIFY, advisory locks, read replicas, RETURNING old values. Everything below is also available as one file: [llms-full.txt](https://tormozz48.github.io/postgrelize/llms-full.txt). ## Guide - [Getting started](https://tormozz48.github.io/postgrelize/guide/getting-started): Install, connect, define a model, first queries - [Migrating from Sequelize](https://tormozz48.github.io/postgrelize/guide/migrating): Move from Sequelize v6: imports, differences, unsupported features - [Models and data types](https://tormozz48.github.io/postgrelize/guide/models): Model definition with init/define, data types, model options - [Querying](https://tormozz48.github.io/postgrelize/guide/querying): Finders, where operators, pagination, aggregates, scopes, raw queries - [Associations](https://tormozz48.github.io/postgrelize/guide/associations): hasMany/belongsTo/belongsToMany, include, nested creation - [Decorators](https://tormozz48.github.io/postgrelize/guide/decorators): Public decorator API and sequelize.addModels - [Transactions](https://tormozz48.github.io/postgrelize/guide/transactions): Managed/unmanaged transactions, savepoints, CLS, row locks - [Hooks and validation](https://tormozz48.github.io/postgrelize/guide/hooks-validation): Hooks, validators, Standard Schema validation - [Schema, sync and migrations](https://tormozz48.github.io/postgrelize/guide/schema): sync, QueryInterface, migrations - [Errors](https://tormozz48.github.io/postgrelize/guide/errors): Error classes, constraint violations, timeouts, optimistic locking - [Connection, pool and logging](https://tormozz48.github.io/postgrelize/guide/connection): Connection URI and options, pool, logging, statement cache - [Using postgrelize with LLMs and agents](https://tormozz48.github.io/postgrelize/guide/llm): Using postgrelize from LLMs and agents: llms.txt, USAGE.md, Agent Skill ## PostgreSQL features - [Schema objects](https://tormozz48.github.io/postgrelize/guide/schema-objects): Extensions, sequences, views, functions, triggers, row-level security policies - [Constraints and indexes](https://tormozz48.github.io/postgrelize/guide/constraints-indexes): Expression indexes, EXCLUDE, NOT VALID, PostgreSQL 18 constraints, partitioning - [Upserts and RETURNING](https://tormozz48.github.io/postgrelize/guide/upserts): ON CONFLICT upserts, Model.insert, RETURNING - [Bulk writes and COPY](https://tormozz48.github.io/postgrelize/guide/bulk-writes): UPDATE FROM, DELETE USING, INSERT FROM, MERGE, COPY - [Advanced queries](https://tormozz48.github.io/postgrelize/guide/advanced-queries): Subqueries, CTEs, window functions, DISTINCT ON, cursors - [Sessions and scaling](https://tormozz48.github.io/postgrelize/guide/sessions): LISTEN/NOTIFY, advisory locks, session settings, read replicas ## Reference - [Reference](https://tormozz48.github.io/postgrelize/reference/): Find any feature by entity or by task - [Performance](https://tormozz48.github.io/postgrelize/guide/performance): Measured speed against Sequelize v6, how to run the benchmark, tuning tips - [PostgreSQL coverage](https://tormozz48.github.io/postgrelize/postgresql-coverage): Which PostgreSQL features are supported, via literal, planned or out of scope - [Security](https://tormozz48.github.io/postgrelize/security): How every input reaches SQL (bound, identifier, allowlist, literal, raw) - [Sequelize issues fixed in postgrelize](https://tormozz48.github.io/postgrelize/sequelize-issues): Sequelize v6 bugs fixed in postgrelize and intentional differences ## API - [API reference index](https://tormozz48.github.io/postgrelize/api/): all exports by kind - [Sequelize](https://tormozz48.github.io/postgrelize/api/classes/Sequelize): API reference page - [Model](https://tormozz48.github.io/postgrelize/api/classes/Model): API reference page - [QueryInterface](https://tormozz48.github.io/postgrelize/api/classes/QueryInterface): API reference page - [Transaction](https://tormozz48.github.io/postgrelize/api/classes/Transaction): API reference page ## Optional - [Usage cheat sheet in the npm package](https://github.com/tormozz48/postgrelize/blob/main/llm/USAGE.md): one file for agents that only see `node_modules` - [Agent Skill](https://github.com/tormozz48/postgrelize/tree/main/skills/postgrelize): SKILL.md with reference files