Skip to content

Object Coverage

llms.txt lists every page for an agent

Each row is a CREATE command a pinned server has, or one form of a command where chant treats the forms apart (CREATE TYPE ... AS ENUM is declared, CREATE TYPE ... AS RANGE is not). The commands come from the servers’ own sources at each pinned version (scripts/sql-create-commands.ts), and a test fails when a pinned server has a command with no row here, so a new server release cannot add a kind nobody looked at.

  • declared: a tag declares it, and import writes it as that declaration.
  • referenced: the environment’s, and never declared: a declaration names one, and chant never reads its values. A ClickHouse named collection is one (#4395): ENGINE = S3(lake_creds, format = 'Parquet') names lake_creds, the build records the name, and chant sql plan fails when the server has no collection of that name. chant import --from <env> lists the server’s SQL-defined collections as prerequisites and imports the rest. See Named collections.
  • refused: no declaration holds it yet. chant import --from <env> fails when the server has one, naming every such object (kind, schema, name) at once, and chant import schema.sql fails on the statement. Nothing is left out without a word.
  • out of scope: the environment’s, not a schema’s: import never reads it.

--skip-undeclarable (--parser-option skipUndeclarable for a file) imports everything else and lists the refused objects as warnings, for an adopter who keeps those objects by hand for now:

Terminal window
chant import --from prod --skip-undeclarable
chant import schema.sql --parser-option skipUndeclarable

What a managed provider, an extension or the server’s configuration files define is never refused: an extension’s aggregates and casts are the extension’s, declared with it, and a quota from users.xml is the server’s. An import with --type, --name or --owned asks only for objects chant can hold, and does not look for the rest.

Pinned majors: 14.24, 15.19, 16.15, 17.11, 18.6. 33 declared, 11 refused, 2 out of scope.

CommandKindStatusDeclared by, or why not
CREATE ACCESS METHODaccess methodrefusedno tag declares an access method; an extension usually installs one, and the extension is declared instead
CREATE AGGREGATEaggregatedeclaredPostgres::Aggregate
CREATE CASTcastdeclaredPostgres::Cast: the database’s, named by its two types; read where a type or its function is in scope
CREATE COLLATIONcollationdeclaredPostgres::Collation
CREATE CONVERSIONconversionrefusedno tag declares an encoding conversion
CREATE DATABASEdatabaseout of scopea project’s schema lives in one database, which the environment provides (sql.profiles.<env>)
CREATE DOMAINdomaindeclaredPostgres::Domain
CREATE EVENT TRIGGERevent triggerdeclaredPostgres::EventTrigger: the database’s, not a schema’s; creating one takes a superuser
CREATE EXTENSIONextensiondeclaredPostgres::Extension
CREATE FOREIGN DATA WRAPPERforeign data wrapperdeclaredPostgres::ForeignDataWrapper: the database’s, not a schema’s; creating one takes a superuser; one an extension installs comes with the extension; an option that holds a credential is refused
CREATE FOREIGN TABLEforeign tabledeclaredPostgres::ForeignTable: its own tag, not table: another CREATE and ALTER, no key, index or storage clauses; its server cannot be altered; one that is a partition, inherits or has a generated column is not declared; an option that holds a credential is refused
CREATE FUNCTIONfunctiondeclaredPostgres::Function
CREATE FUNCTION (RETURN or BEGIN ATOMIC body)routine with a SQL-standard bodyrefusedthe server stores a SQL-standard body parsed and prints it back rewritten, so a declaration cannot be compared with it; declare the routine with a string body (AS $$ … $$)
CREATE GROUPgroupdeclaredPostgres::Role: an alias of CREATE ROLE
CREATE INDEXindexdeclaredPostgres::Index
CREATE LANGUAGEprocedural languagerefusedno tag declares a procedural language; an extension installs one, and the extension is declared instead
CREATE MATERIALIZED VIEWmaterialized viewdeclaredPostgres::MaterializedView
CREATE OPERATORoperatordeclaredPostgres::Operator: identified by its name and operand types; RESTRICT and JOIN change in place, and from 17 so does setting a commutator or negator or turning on HASHES or MERGES; anything else is a drop and a create
CREATE OPERATOR CLASSoperator classdeclaredPostgres::OperatorClass: identified by its name and index method; a change is a drop and a create, since ALTER OPERATOR CLASS only renames or moves it; its own family, named as the class, comes with it
CREATE OPERATOR FAMILYoperator familydeclaredPostgres::OperatorFamily: identified by its name and index method; its members come with the classes that name it, and loose members added with ALTER OPERATOR FAMILY are not declared
CREATE POLICYpolicydeclaredPostgres::Policy: read where the profile manages access (sql.profiles.<env>.access)
CREATE PROCEDUREproceduredeclaredPostgres::Procedure
CREATE PUBLICATIONpublicationdeclaredPostgres::Publication: the database’s, not a schema’s; a table of it may carry a column list and row filter from 15
CREATE ROLEroledeclaredPostgres::Role: import reads only the roles a build declares, since a role is the cluster’s
CREATE RULErulerefusedno tag declares a rewrite rule; a view’s own rule is the view’s
CREATE SCHEMAschemadeclaredPostgres::Schema
CREATE SEQUENCEsequencedeclaredPostgres::Sequence
CREATE SERVERforeign serverdeclaredPostgres::ForeignServer: the database’s, not a schema’s; its user mappings are refused, so credentials stay out of the declaration
CREATE STATISTICSextended statisticsdeclaredPostgres::Statistics
CREATE SUBSCRIPTIONsubscriptionrefuseda subscription’s connection string carries a credential, and creating one opens a replication slot on the publisher, outside this database; the environment makes it
CREATE TABLEtabledeclaredPostgres::Table
CREATE TABLE AStable from a querydeclaredPostgres::Table: the server keeps no query, so the table it made reads as a CREATE TABLE
CREATE TABLESPACEtablespaceout of scopea tablespace is the cluster’s, a directory on the server; a table’s TABLESPACE clause is kept
CREATE TEXT SEARCH CONFIGURATIONtext search configurationdeclaredPostgres::TextSearchConfiguration: PARSER and its ADD MAPPING statements; COPY is refused, since it copies mappings chant does not read; mappings change in place, the parser by drop and create
CREATE TEXT SEARCH DICTIONARYtext search dictionarydeclaredPostgres::TextSearchDictionary: a template and its options; options change in place, the template by drop and create
CREATE TEXT SEARCH PARSERtext search parserrefusedno tag declares a text search parser; one is C code an extension installs
CREATE TEXT SEARCH TEMPLATEtext search templaterefusedno tag declares a text search template; one is C code an extension installs
CREATE TRANSFORMtransformrefusedno tag declares a transform; an extension installs one
CREATE TRIGGERtriggerdeclaredPostgres::Trigger
CREATE TYPE (AS ENUM)enum typedeclaredPostgres::Enum
CREATE TYPE (AS (…))composite typedeclaredPostgres::CompositeType
CREATE TYPE (AS RANGE)range typedeclaredPostgres::RangeType: its multirange type comes with it (MULTIRANGE_TYPE_NAME)
CREATE TYPE (INPUT, OUTPUT, or a shell type)base typerefusedno tag declares a base type; its input and output functions are C code an extension installs
CREATE USERuserdeclaredPostgres::Role: an alias of CREATE ROLE … LOGIN
CREATE USER MAPPINGuser mappingrefuseda user mapping carries the remote user and password, which the environment supplies and a declaration never holds
CREATE VIEWviewdeclaredPostgres::View

Pinned release: 26.8.15.10. 12 declared, 1 referenced, 6 refused, 1 out of scope.

CommandKindStatusDeclared by, or why not
CREATE DATABASEdatabasedeclaredClickHouse::Database
CREATE DICTIONARYdictionarydeclaredClickHouse::Dictionary
CREATE FUNCTIONSQL functiondeclaredClickHouse::Function
CREATE FUNCTION (LANGUAGE WASM, or with a driver)non-SQL functionrefusedonly a SQL function (CREATE FUNCTION f AS (x) -> …) is declared
CREATE HANDLERHTTP handlerrefusedan HTTP handler is server-level configuration, not a schema object
CREATE INDEXindexdeclaredClickHouse::Table: an index is part of its table: SHOW CREATE TABLE prints it, and the table’s declaration holds it
CREATE MASKING POLICYmasking policyrefusedmasking policies are available only in ClickHouse Cloud, not on the pinned server
CREATE NAMED COLLECTIONnamed collectionreferenceda named collection holds credentials (a password, a secret key), which are the environment’s: chant never declares one or reads its values. An engine, a table function or a dictionary SOURCE names it, a plan checks that it exists, and import lists the server’s as prerequisites
CREATE QUOTAquotadeclaredClickHouse::Quota: import reads only the access objects a build declares
CREATE RESOURCEworkload resourcerefuseda resource is server-level scheduling (a disk’s reads or writes), configured with the server, not a schema object
CREATE ROLEroledeclaredClickHouse::Role: import reads only the access objects a build declares
CREATE ROW POLICYrow policydeclaredClickHouse::RowPolicy: import reads only the access objects a build declares
CREATE SETTINGS PROFILEsettings profiledeclaredClickHouse::SettingsProfile: import reads only the access objects a build declares
CREATE TABLEtabledeclaredClickHouse::Table
CREATE TABLE (TEMPORARY)temporary tableout of scopea temporary table lives in one session
CREATE USERuserdeclaredClickHouse::User: import reads only the access objects a build declares
CREATE VIEWviewdeclaredClickHouse::View
CREATE VIEW (MATERIALIZED)materialized viewdeclaredClickHouse::MaterializedView
CREATE WINDOW VIEWwindow viewrefuseda window view is experimental, and the pinned server refuses it under its default query analyzer
CREATE WORKLOADworkloadrefuseda workload is server-level scheduling, configured with the server, not a schema object

MySQL 8.0.40, and Aurora MySQL 3. 5 declared, 5 refused, 9 out of scope. MySQL’s commands are the reference manual’s CREATE statements at that release, as its column types are; no server source is read.

CommandKindStatusDeclared by, or why not
CREATE DATABASEdatabasedeclaredMySQL::Database
CREATE EVENTeventrefusedan event runs SQL on a schedule; chant declares no scheduled work
CREATE FUNCTIONstored functionrefuseda stored function’s body is a program, and chant declares no MySQL routines
CREATE FUNCTION (loadable (SONAME))loadable functionout of scopea loadable function is a library installed on the server, not a schema object
CREATE INDEXindexdeclaredMySQL::Table: an index is part of its table: SHOW CREATE TABLE prints it, and the table’s declaration holds it. A CREATE INDEX in a file of DDL is read into its table
CREATE LOGFILE GROUPlogfile groupout of scopea logfile group belongs to NDB Cluster’s storage, not to a schema
CREATE PROCEDUREstored procedurerefuseda stored procedure’s body is a program, and chant declares no MySQL routines
CREATE RESOURCE GROUPresource groupout of scopea resource group is server-level thread scheduling, not a schema object
CREATE ROLEroleout of scopeaccounts and roles are the server’s, and the MySQL dialect declares no access
CREATE SCHEMAschemadeclaredMySQL::Database: CREATE SCHEMA is a synonym of CREATE DATABASE
CREATE SERVERfederated serverout of scopea server definition holds another server’s credentials, which are the environment’s
CREATE SPATIAL REFERENCE SYSTEMspatial reference systemout of scopea spatial reference system is server-wide data, not a schema object
CREATE TABLEtabledeclaredMySQL::Table
CREATE TABLE (TEMPORARY)temporary tableout of scopea temporary table lives in one session
CREATE TABLE (PARTITION BY)partitioned tablerefusedchant does not plan partition changes, so a partitioned table is not declared
CREATE TABLESPACEtablespaceout of scopea tablespace is storage the server’s operator manages, not a schema object
CREATE TRIGGERtriggerrefuseda trigger’s body is a program, and chant declares no MySQL triggers
CREATE USERuserout of scopeaccounts are the server’s, and the MySQL dialect declares no access
CREATE VIEWviewdeclaredMySQL::View

A kind becomes declarable in three steps: a tag that declares it, the catalog reader reading it (src/postgres/live/catalog.ts, src/clickhouse/live/catalog.ts, src/mysql/live/catalog.ts), and its row flipped to declared with the entity type, its reason taken out. The row’s flip is what stops import refusing the kind. After moving a pin, run npx tsx scripts/sql-create-commands.ts and give each new command a row.

chant