Skip to content

Index of exports ​

Every function, class, constant and type that the packages export, with the first sentence of its documentation. Each name links to its page in the API reference, which has the full signature and an example; the guide pages explain how they fit together.

egon-orm ​

Schemas and associations ​

Guide: Schemas and associations.

ExportKindSummary
AnySchematypeAny schema class.
assocfunctionA query for the rows of association name of one parent or several.
AssocinterfaceAn association declaration.
AssocKeystypeThe names of the associations of schema class S.
AssocKindtypeThe four association kinds.
AssocMetainterfaceEverything known about one association, resolved lazily.
AssocOrderBytypeThe default order of an association's rows.
AssocOrderMetainterfaceOne entry of an association's default preload order.
AssocWheretypeA condition that an association always applies to its target.
belongsTofunctionDeclares that this schema holds a foreign key to target.
BelongsToOptionsinterfaceOptions of belongsTo.
DefaultFieldFlagsinterfaceThe flags of a field with no modifier applied.
EmbeddedSchemafunctionDefines an embedded schema.
EmbeddedSchemaOptionsinterfaceOptions of EmbeddedSchema.
EmbedFieldBuilderinterfaceThe builder of an embed field, as the types see it.
EmbedMetainterfaceEverything known about one embed.
EmbedOnReplacetypeWhat a nested write does with an embed that the new value replaces.
EmbedOptionsinterfaceOptions of t.embedOne and t.embedMany.
FieldBuilderinterfaceA field declaration.
FieldFlagsinterfaceThe facts about a field that the type system tracks, as a record of booleans.
FieldMetainterfaceEverything known about one field of a schema.
fieldNamesfunctionThe field names of a schema class, in declaration order.
FieldNamestypeThe field names of a schema class.
FieldsShapetypeThe fields object passed to Schema(source, fields).
FieldTypesinterfaceThe field types.
hasManyfunctionDeclares that any number of rows of target point at this schema.
HasManyOptionsinterfaceOptions of hasMany.
hasOnefunctionDeclares that at most one row of target points at this schema.
HasOneOptionsinterfaceOptions of hasOne.
InsertShapetypeThe object a caller supplies to insert a row of schema S.
isLoadedfunctionWhether association name is loaded on row.
isRowfunctionWhether value is a row.
isSchemafunctionWhether value is a schema class.
JoinKeyMetainterfaceOne side of a manyToMany join.
JoinKeysinterfaceThe two sides of a join table.
JoinThroughMetainterfaceThe join table of a manyToMany association.
JsontypeThe type of T once it has been through JSON.stringify and JSON.parse.
JsonReturntypeThe JSON of what function F resolves to.
KeyFieldstypeA field name, or several for a composite key.
LoadedtypeA row of schema S with the associations in P loaded.
LoadedAstypeA row of schema S with association K loaded as elements of type E, whatever E is.
LoadedUncheckedtypeA row of S with the associations of preload spec P loaded.
manyToManyfunctionDeclares that rows of target are linked to this schema through a join table.
ManyToManySchemaOptionsinterfaceOptions of manyToMany when the join table has a schema class of its own.
ManyToManyTableOptionsinterfaceOptions of manyToMany when the join table is given by name.
metafunctionThe metadata of a schema class.
NamingtypeHow field names become column names (or, in an embedded schema, JSON keys).
OnReplacetypeWhat happens to associated rows that a parent changeset no longer mentions.
PreloadMarkerinterfaceThe type-only marker of a Loaded row type.
PreloadSpectypeWhich associations of schema S are loaded, to any depth.
primaryKeyOffunctionThe value that identifies a row.
PrimaryKeyOftypeThe value that identifies one row of schema S.
RowtypeThe type of a row of schema S.
RowMarkerclass, as a typeWhat every row type has besides its fields and the class's own members.
RowMetainterfacePer-row metadata, stored under ROW.
RowStatetypeWhere a row stands relative to the database.
SchemafunctionDefines the schema of a table.
SchemaClasstypeWhat Schema(source, fields) returns.
SchemaMetainterfaceEverything derived from a schema definition, computed once and cached on the class under META.
SchemaOptionsinterfaceOptions of Schema.
stateOffunctionWhere a row stands relative to the database.
tconstantThe field builder.
ThroughOptionsinterfaceOptions of a hasOne or hasMany that follows a chain of other associations.
TimestampFieldstypeThe fields timestamps returns.
timestampsfunctionThe two bookkeeping fields, to spread into a schema's fields.
TimestampsOptionsinterfaceOptions of timestamps.
VirtualOptionsinterfaceOptions of .virtual().
WithFlagtypeF with the flag K set to true.
WithoutJsontypeF with the flag json set to false.
WritabletypeWhen a field may be written.

Types ​

Guide: Types.

ExportKindSummary
AnyFieldTypetypeA FieldType whose type parameters are not known statically.
AppTypeOftypeThe application type of a FieldType.
CastResulttypeThe outcome of FieldType.cast.
CodecinterfaceA pair of driver conversions.
DbTypetypeThe logical column type of a FieldType.
DbTypeKindtypeThe kind of a DbType.
DbTypeOftypeThe driver type of a FieldType.
DecimalOptionsinterfaceOptions of t.decimal().
defineTypefunctionCreates a type.
EnumMappingtypeThe mapping of `t.enum({ ...
FieldTypeinterfaceA type.
parameterizedfunctionBuilds a family of types from options, and remembers the result per option set.
TimestampOptionsinterfaceOptions of t.timestamp() and t.localTimestamp().
TimestampPrecisiontypeThe precision of a timestamp field.
TypeDefinitiontypeWhat defineType takes.

Changesets and validation ​

Guide: Changesets and validation.

ExportKindSummary
ActiontypeWhat a changeset is being used for.
AnyChildChangesettypeA changeset of T of either kind, as a with function may return it.
AppliedDatatypeWhat applyChanges() returns.
applyActionfunctionApplies the changes if the changeset is valid, without the database.
applyActionOrThrowfunctionApplies the changes if the changeset is valid, without the database, as applyAction does, and returns the updated row (or plain data object).
AssocChangetypeThe change of association K of S in changeset.changes.
AssocNametypeThe association names of S.
AssocTargettypeThe target class of association K of S, or never when the types do not know it (a changeset made from a row alone).
BASEconstantThe error key for problems that belong to the record as a whole.
buildAssocfunctionA changeset for a new record of a hasOne or hasMany association of parent, with the foreign key set from the parent's key (and the association's declared defaults applied) before values.
castfunctionStarts a changeset from untrusted input, such as a request body.
CastNestedArgstypeThe options argument of a nested cast.
CastNestedOptionsinterfaceThe options of castAssoc and castEmbed.
CastOptionsinterfaceOptions of cast.
changefunctionStarts a changeset from trusted values, such as values your own code computed.
ChangestypeThe changes of a changeset.
ChangesetclassA change to one record.
ChangesetDatatypeThe existing record of a changeset whose target has one.
ChangesetErrorinterfaceOne validation or constraint error on a field.
ChangesetLikeinterfaceThe part of a changeset that code outside changeset/ may rely on.
ChangesetModeltypeThe class of a changeset's records, typed by its rows.
ChangesetSourcetypeWhat a changeset describes.
ChangeValidatorErrorinterfaceAn error returned by a validateChange function.
ChangeValidatorResulttypeWhat a validateChange function returns.
CheckConstraintOptionsinterfaceOptions of checkConstraint.
ConfirmationOptionsinterfaceOptions of validateConfirmation.
ConstraintinterfaceA constraint declared on a changeset.
ConstraintOptionsinterfaceOptions of the constraint declarations.
ConstraintTypetypeThe kinds of constraint a changeset can declare.
EmbedNametypeThe names castEmbed and putEmbed take.
EmbedTargettypeThe embedded schema class of embed field K of S, or never when the types do not know it.
ErrorFormattertypeThe callback of traverseErrors.
ErrorMessagestypeThe type of errorMessages().
ErrorTreeinterfaceThe errors of a changeset as traverseErrors returns them.
ErrorTreeOftypeWhat traverseErrors(changeset, fn) returns, for a changeset of type C and a callback returning T.
FieldChangetypeThe change of field K of S in changeset.changes.
FieldNametypeThe field names of S.
FieldOfTypetypeThe fields of S whose value (without null) is a T.
FieldValidatortypeWhat validateField takes.
FieldValidatorFntypeA function given to validateField.
FieldValuestypeThe value of every field of S, virtual fields included.
LengthOptionsinterfaceOptions of validateLength.
LooseNestedOptionsinterfaceThe options of a nested cast whose target the types do not know (a changeset made from a row alone).
MessageOptiontypeA message given to a validation in place of its default.
MessageOptionsinterfaceThe message option every validation takes.
NumberOptionsinterfaceOptions of validateNumber.
PrepareFunctiontypeA function given to prepareChanges.
PutAssocValuetypeWhat putAssoc(name, value) takes for association K of S.
PutEmbedValuetypeWhat putEmbed(name, value) takes for embed field K of S.
PutItemtypeOne record given to putAssoc or putEmbed.
PutObjecttypeA plain object given to putAssoc for one record of T.
RequiredOptionsinterfaceOptions of validateRequired.
RowSchematypeThe schema a changeset is typed with when it is made from a row alone.
SchemalessTargetinterfaceA changeset without a schema class.
StandardSchemaV1interfaceA schema of any library that implements Standard Schema v1.
StandardSchemaV1IssueinterfaceOne validation issue.
StandardSchemaV1PathSegmentinterfaceA path segment in object form.
StandardSchemaV1ResulttypeWhat validate returns.
traverseErrorsfunctionTurns every error of a changeset, and of the changesets nested in its changes, into a value with fn.
TypedErrorTreetypeThe errors of a changeset of S with the extra error keys E, as traverseErrors returns them.
UniqueAsyncOptionsinterfaceOptions of validateUniqueAsync.
ValidateOptionsinterfaceOptions of validate and validateAsync.
ValidationEntrytypeOne entry of cs.validations.
ValidationIssueinterfaceOne problem reported by a ValidatorFn.
ValidatortypeAnything a changeset can be validated with.
ValidatorContextinterfaceWhat a ValidatorFn is told besides the values.
ValidatorFntypeA validator written as a plain function.
ValidatorResulttypeWhat a ValidatorFn returns.
WithFunctiontypeThe function that makes the changeset of one child.

Queries and expressions ​

Guide: Queries and expressions.

ExportKindSummary
Aggregateclass, as a typeAn aggregate call.
andfunctiona AND b AND ….
arrayAggfunctionarray_agg(x).
avgfunctionavg(x).
BindingtypeThe binding of schema S in a query.
Caseclass, as a typeCASE WHEN … THEN … [WHEN …] [ELSE …] END.
caseWhenfunctionStarts a CASE expression.
coalescefunctioncoalesce(a, b, …).
Colclass, as a typeA column of a binding.
countfunctioncount(*) with no argument.
countDistinctfunctioncount(DISTINCT x).
ctefunctionA CTE of the query as a source, typed by a schema class (its rows are whole rows of it) or by the CTE's own query.
CteOptionsinterfaceOptions of withCte.
cumeDistfunctioncume_dist().
denseRankfunctiondense_rank().
dynamicconstantA condition or expression built before the query it is used in, for filters assembled from data.
DynamictypeAn expression built before its query.
DynamicBindingstypeThe bindings a dynamic expression receives for the schemas Bs.
DynamicFunctioninterfaceThe dynamic function, and dynamic.true() / dynamic.false().
DynamicMethodsinterfaceThe methods of a dynamic condition.
ExcludableClausetypeThe clauses exclude can remove.
existsfunctionEXISTS (query).
Exprclass, as a typeA typed SQL expression.
fieldfunctionA column of a binding chosen by a name known only at run time, such as a sort key from a request.
firstValuefunctionfirst_value(value).
fragmentconstantRaw SQL, as a tagged template.
FragmentFunctioninterfaceThe fragment tag, and fragment.ident for a dynamic identifier.
fromfunctionStarts a query.
hasNamedBindingfunctionWhether query has a binding named alias, and with a schema class, whether that binding is of that schema.
jsonAggfunctionjson_agg(x).
lagfunctionlag(value, offset = 1, default).
lastValuefunctionlast_value(value).
leadfunctionlead(value, offset = 1, default).
litfunctionA literal written into the SQL text, for the kinds that are safe there.
LockModetypeThe row lock modes.
LockOptionsinterfaceOptions of lock.
maxfunctionmax(x).
minfunctionmin(x).
NeedsWindowinterfaceType only.
NoParamstypeThe named parameters of an expression that uses none.
notfunctionNOT x.
nowfunctionnow().
nthValuefunctionnth_value(value, n).
ntilefunctionntile(buckets).
OperandtypeWhat a comparison or arithmetic operator takes for an expression of type T.
orfunctiona OR b OR ….
OrderExprclass, as a typeOne ORDER BY item.
outerReffunctionThe binding alias of the query a subquery is nested in, with the columns of schema.
paramfunctionA named parameter.
percentRankfunctionpercent_rank().
PreloadQuerytypeThe query a preload callback receives, and what assoc() returns.
preparefunctionMarks a query that runs many times.
PreparedQueryclass, as a typeA query prepared with prepare.
Queryclass, as a typeA query.
QueryabletypeWhat a repo method reads.
QueryLikeinterfaceAnything with a query's type information.
QueryParamstypeThe named parameters a query needs when it runs.
QueryResulttypeThe type of the rows a query returns.
QueryWithtypeA query that has a binding of schema S under each alias of Bs, whatever else it has.
rankfunctionrank().
rowNumberfunctionrow_number().
scalarfunctionA query as one value, (SELECT …).
selectedAsfunctionNames a selected expression in the SQL (… AS "total"), so that orderBy and groupBy can refer to it with selectedAs("total").
SetInputtypeWhat set takes for schema S.
SomeParamstypeThe named-parameter position that accepts an expression whatever parameters it needs.
SourcetypeA source made by subquery(q) or cte(name, shape).
SourceBindingOftypeThe binding a query gives as a source.
SourceRowOftypeThe row a query over the source returns when it selects nothing.
stringAggfunctionstring_agg(x, separator).
subqueryfunctionA query as a source, for from or a join.
SubqueryBindingtypeThe binding of a source that returns objects of values (a subquery or CTE whose query selects an object of expressions).
sumfunctionsum(x).
tuplefunctionA row value for a row comparison.
Tupleclass, as a typeA row value.
UsesWindowinterfaceType only.
valfunctionAn explicit bound parameter, for a value whose type cannot come from the other side of an operator (in a select, in a fragment, as the first argument).
WhereObjecttypeThe object form of where for schema S.
WindowDefstypeThe named windows of .windows({ … }).
WindowFunctiontypeA window function before over(…).
WindowSpecinterfaceThe window an aggregate is computed over (OVER (…)), when it is not a named one.

Repo and results ​

Guide: Repo and results.

ExportKindSummary
AggregateFunctiontypeThe aggregate functions of repo.aggregate.
BulkResultinterfaceWhat a bulk write returns.
ConflictTargetOptiontypeWhich conflict an upsert handles.
ConflictUpdateOptiontypeWhich columns an upsert updates on the row it collided with.
createRepofunctionCreates a repo over an adapter.
DeleteOptionsinterfaceThe options of repo.delete.
ExplainReadOptionsinterfaceThe options of repo.explain.
failurefunctionBuilds a failed Result.
FailureinterfaceThe failure half of a Result.
InsertAllOptionsinterfaceThe options of repo.insertAll.
InsertAllRowtypeOne row of insertAll.
InsertOptionsinterfaceThe options of repo.insert.
InsertOrUpdateOptionsinterfaceThe options of repo.insertOrUpdate.
LogOptiontypeLogs each statement the repo runs.
OnConflictOptiontypeWhat an insert does when it collides with an existing row.
PlanCacheStatsinterfaceCounters of a plan cache, for telemetry and tests.
PreloadOptionsinterfaceThe options of repo.preload.
RawRowsinterfaceWhat repo.raw returns.
ReadArgstypeThe arguments after the queryable.
ReadOptionsinterfaceThe options every read method takes, last.
RepointerfaceThe repo.
RepoOperationtypeWhat a repo method reports in its query events as operation.
RepoOptionsinterfaceThe options of {@link createRepo }.
RepoQueryEventinterfaceOne statement the repo ran, as its query listeners receive it.
ResulttypeEither data or an error, discriminated by success.
ResultOftypeWhat a read of Q returns per row.
RootSchemaOftypeThe schema class of the root binding of Q.
SqlAndParamsinterfaceWhat repo.toSql returns.
StaleErrorOptioninterfaceHow a stale update or delete is reported on the changeset instead of thrown.
StreamReadOptionsinterfaceThe options of repo.stream.
successfunctionBuilds a successful Result.
SuccessinterfaceThe success half of a Result.
TransactionOptionsinterfaceThe options of repo.transaction and repo.transactionOrThrow.
UpdateOptionsinterfaceThe options of repo.update.

Batch ​

Guide: Batch.

ExportKindSummary
BatchclassA list of named steps that run in one transaction.
BatchFailureinterfaceHow a batch failed.
BatchOperationtypeThe operations a batch step can be.
BatchStepinterfaceOne step of a batch, as Batch.toList lists it.
createBatchfunctionStarts a batch with no steps.

Adapters ​

Guide: Adapters.

ExportKindSummary
AdapterinterfaceA database, as the repo sees it.
AdapterDefinitioninterfaceWhat a dialect package gives createAdapter, internal to the Egon packages like createAdapter, and not a supported extension point.
AdapterEventsinterfaceThe events an adapter emits, by name.
BeginOptionsinterfaceOptions for starting a transaction.
CapabilitiesinterfaceWhat a dialect supports.
ConnectioninterfaceOne checked-out database connection.
createAdapterfunctionCreates an adapter from a dialect's definition, internal to the Egon packages.
DatabaseAdapterinterfaceAn adapter as the dialect packages create it.
DialecttypeThe SQL dialects.
DriverCodecinterfaceHow one driver's values for a column kind differ from the canonical driver values the types expect.
DriverCodecstypeThe fixes of one driver, by column kind.
ExecuteOptionsinterfaceOptions for one execution.
ExecutorinterfaceAnything that can run SQL.
IsolationLeveltypeThe transaction isolation levels.
PoolEventinterfaceThe state of the connection pool, reported with pool events.
PoolStatstypeThe state of an adapter's connection pool.
QueryEventinterfaceOne executed statement, as reported to telemetry listeners.
QueryListenerOptionsinterfaceOptions of a query listener.
RawResultinterfaceWhat a statement returned, exactly as the driver reported it.
StreamOptionsinterfaceOptions for a streamed execution.

Errors ​

Guide: Errors.

ExportKindSummary
CastErrorclassA value could not be converted to the type it was supposed to have, outside a changeset (inside one, a failed cast is a changeset error, not an exception).
ConstraintErrorclassThe database rejected a write because of a constraint that the changeset did not declare.
ConstraintViolationTypetypeThe kinds of constraint violation a database reports.
DatabaseErrorclassThe database or its driver failed.
DatabaseErrorCodetypeThe codes of a DatabaseError.
EgonErrorclassThe base class of every error Egon throws.
ErrorCatalogtypeA catalog of full messages.
ErrorCodetypeThe stable codes of the error classes.
ErrorDetailsinterfaceWhat an error's constructor takes besides the identifier and the short sentence.
ErrorIdtypeThe identifier of every message Egon throws, such as "query.aliasTaken".
ErrorParamstypeThe values named by in an identifier's catalog entry.
InvalidChangesetErrorclassAn …OrThrow write was given an invalid changeset.
isEgonErrorfunctionWhether value is an error thrown by Egon, optionally with a given code.
MultipleResultsErrorclassA query that may return at most one row returned more (one, getBy, …).
NoResultsErrorclassA query that had to return a row returned none (oneOrThrow, getOrThrow, …).
NotLoadedErrorclassAn association was needed but had not been preloaded.
QueryErrorclassA query is wrong.
RollbackErrorclassA transaction was rolled back where its caller expected a value.
SchemaDefinitionErrorclassA schema is declared wrongly.
StaleEntryErrorclassAn update or delete matched no row.
useFullErrorMessagesfunctionMakes every error constructed from now on carry its full message.

The package ​

Guide: The package.

ExportKindSummary
VERSIONconstantThe version of the egon-orm package.

egon-orm/testing ​

ExportKindSummary
createSandboxfunctionMakes a sandbox for a repo made by createRepo.
expectQueriesfunctionRuns fn and returns the query events of the statements the repo ran meanwhile, in order.
SandboxinterfaceA sandbox over one repo.

egon-orm/migration ​

ExportKindSummary
AlterTableBuilderclass, as a typeThe t of m.alterTable(name, (t) => …).
ColumnAdderclass, as a typeThe column methods shared by createTable and alterTable.
ColumnBuilderclass, as a typeOne column being defined.
ColumnKindtypeThe column types that have a name of their own.
ColumnTypetypeThe type of a column, as a migration names it.
CreateConstraintOptionsinterfaceOptions of MigrationBuilder.createConstraint.
createDatabasefunctionRuns CREATE DATABASE name through adapter, which must be connected to another database of the same server (on Postgres, usually postgres).
createMigratorfunctionCreates a migration runner over an adapter.
CreateTableOptionsinterfaceOptions of MigrationBuilder.createTable.
DefaultValuetypeA column default.
defineMigrationfunctionDefines a migration.
DownOptionsinterfaceOptions of Migrator.down.
DropConstraintOptionsinterfaceOptions of MigrationBuilder.dropConstraint.
dropDatabasefunctionRuns DROP DATABASE [IF EXISTS] name through adapter, which must be connected to another database of the same server.
DropIndexOptionsinterfaceOptions of MigrationBuilder.dropIndex.
DropTableOptionsinterfaceOptions of MigrationBuilder.dropTable.
IdOptionsinterfaceOptions of ColumnAdder.id.
IndexOptionsinterfaceOptions of MigrationBuilder.createIndex.
JsonValuetypeA JSON value, for the default of a json or jsonb column.
MigrationinterfaceA migration, as defineMigration returns it.
MigrationBuilderclass, as a typeThe m a migration's up and down receive.
MigrationDefinitioninterfaceWhat a migration is written as.
MigrationErrorclassA migration could not be defined, loaded or run.
MigrationEventtypeWhat the runner reports while it works.
MigrationRuninterfaceOne migration that was run (or, in a dry run, would be).
MigrationSourceinterfaceOne migration with its version and name.
MigrationStatusinterfaceThe state of one migration.
MigratorinterfaceApplies, rolls back and reports migrations.
MigratorOptionsinterfaceOptions of createMigrator.
ModifyOptionsinterfaceOptions of AlterTableBuilder.modify.
parseMigrationFileNamefunctionParses a migration file name.
ReferenceActiontypeWhat a foreign key does when the row it points at is deleted or its key is updated.
ReferencesOptionsinterfaceOptions of ColumnAdder.references.
SqlFragmenttypeSQL written by the program, as a fragment template.
TableBuilderclass, as a typeThe t of m.createTable(name, (t) => …).
TimestampsColumnsOptionsinterfaceOptions of ColumnAdder.timestamps.
UpOptionsinterfaceOptions of Migrator.up.

egon-orm/messages ​

ExportKindSummary
explainfunctionThe full text of one error.
messagesconstantThe full text of every error message, by identifier.

@egon-orm/postgres ​

ExportKindSummary
postgresfunctionCreates a Postgres adapter.
PostgresOptionsinterfaceThe options of {@link postgres }.
PostgresPoolOptionsinterfacePool settings for the pool the adapter creates.
VERSIONconstantThe version of the @egon-orm/postgres package.

@egon-orm/sqlite ​

ExportKindSummary
PragmaValuetypeA pragma's value.
sqlitefunctionCreates a SQLite adapter over better-sqlite3.
SqliteOptionsinterfaceThe options of {@link sqlite }.
VERSIONconstantThe version of the @egon-orm/sqlite package.

@egon-orm/mysql ​

ExportKindSummary
mysqlfunctionCreates a MySQL adapter over mysql2.
MysqlOptionsinterfaceThe options of {@link mysql }.
MysqlPoolOptionsinterfacePool settings for the pool the adapter creates.
VERSIONconstantThe version of the @egon-orm/mysql package.

@egon-orm/zod ​

ExportKindSummary
castWithfunctionCasts params with the keys of a Zod object schema as the permitted fields, then validates the changeset with that schema.
toZodfunctionDerives a Zod object schema from a schema class.
ToZodKeystypeThe field names toZod can pick from in a mode.
ToZodModetypeWhich shape toZod derives.
ToZodOptionsinterfaceOptions of toZod.
ToZodShapetypeThe shape of the Zod object toZod returns.
VERSIONconstantThe version of the @egon-orm/zod package.
ZodHintinterfaceThe hint a custom type gives toZod.

@egon-orm/cli ​

ExportKindSummary
CliIointerfaceWhat the CLI talks to.
defineConfigfunctionTypes a configuration object; returns it unchanged.
EgonConfiginterfaceWhat egon.config.ts exports (as its default export, or as config).
MigrationsConfigtypeWhere the migrations are and how they are tracked.
runfunctionRuns egon with argv (the arguments after the program name) and returns the exit code.
VERSIONconstantThe version of the @egon-orm/cli package.