Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
b7602da
feat(connectors/lakebase): add createLakebasePostgrestClient
ditadi May 2, 2026
218e37f
feat(appkit): add defineSchema with column helpers
ditadi May 2, 2026
b745ca5
feat(database): plugin skeleton with manifest
ditadi May 2, 2026
aa9c720
feat(database): convention loader with prod paths
ditadi May 3, 2026
1822b4a
feat(database): add column.private() to hide secrets from default I/O
ditadi May 4, 2026
e5432d7
feat(plugin): allow abortActiveOperations to return a promise; await …
ditadi May 4, 2026
4d18358
feat(database): async pool drain, statement_timeout, schema-load isol…
ditadi May 4, 2026
e5e92cc
feat(database): set application_name + pool stats; tighten foundation…
ditadi May 4, 2026
e4ed45e
fix(server): cap pool drain wait so SIGTERM force-quit always fires
ditadi May 5, 2026
53f29e0
feat(plugin): allow BasePlugin.abortActiveOperations to return a promise
ditadi May 5, 2026
6b9239e
feat(database): defer fk() refs; FkColumnChain preserves chain typing…
ditadi May 5, 2026
6ba8a3d
chore(connectors/lakebase): drop unused PostgREST factory and @neonda…
ditadi May 5, 2026
e648b07
chore(database): align manifest config; tune defaults; drop forward-l…
ditadi May 5, 2026
0f3e93b
fix(database): destroy pool client on SET failure; drain pool on sche…
ditadi May 5, 2026
08c385a
fix(database): id() stamps primaryKey meta; primaryKey() chain stamps…
ditadi May 6, 2026
df73b75
Merge branch 'main' into stack/database/foundation
ditadi May 6, 2026
0f44417
fix: update pnpm lockfile
ditadi May 6, 2026
f0ab3cd
fix: update pnpm lockfile
ditadi May 6, 2026
979f2a9
fix: sync template plugin manifest
ditadi May 7, 2026
0479813
fix: build docs
ditadi May 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ coverage
.turbo

.databricks
internal
4 changes: 2 additions & 2 deletions docs/docs/api/appkit/Class.Plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,12 @@ Plugin initialization phase.
### abortActiveOperations()

```ts
abortActiveOperations(): void;
abortActiveOperations(): void | Promise<void>;
```

#### Returns

`void`
`void` \| `Promise`\<`void`\>

#### Implementation of

Expand Down
13 changes: 13 additions & 0 deletions docs/docs/api/appkit/Function.bigint.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Function: bigint()

```ts
function bigint(): AppKitColumnChain;
```

Create a bigint column.

## Returns

[`AppKitColumnChain`](Interface.AppKitColumnChain.md)

The wrapped column chain.
13 changes: 13 additions & 0 deletions docs/docs/api/appkit/Function.boolean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Function: boolean()

```ts
function boolean(): AppKitColumnChain;
```

Create a boolean column.

## Returns

[`AppKitColumnChain`](Interface.AppKitColumnChain.md)

The wrapped column chain.
26 changes: 26 additions & 0 deletions docs/docs/api/appkit/Function.defineSchema.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Function: defineSchema()

```ts
function defineSchema<T>(build: (ctx: SchemaBuilderContext) => T, options: DefineSchemaOptions): Schema<T>;
```

Define a schema. This is used to build the schema for the database.

## Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* `Record`\<`string`, [`AppKitTable`](Interface.AppKitTable.md)\<`string`\>\> |

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `build` | (`ctx`: [`SchemaBuilderContext`](Interface.SchemaBuilderContext.md)) => `T` | A function that builds the schema. |
| `options` | [`DefineSchemaOptions`](Interface.DefineSchemaOptions.md) | Options for defining the schema. |

## Returns

[`Schema`](TypeAlias.Schema.md)\<`T`\>

The defined schema.
20 changes: 20 additions & 0 deletions docs/docs/api/appkit/Function.enumColumn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Function: enumColumn()

```ts
function enumColumn(name: string, values: readonly string[]): AppKitColumnChain;
```

Create an enum column.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `name` | `string` | The name of the enum. |
| `values` | readonly `string`[] | The values of the enum. |

## Returns

[`AppKitColumnChain`](Interface.AppKitColumnChain.md)

The wrapped column chain.
27 changes: 27 additions & 0 deletions docs/docs/api/appkit/Function.fk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Function: fk()

```ts
function fk(target: AppKitColumn): FkColumnChain;
```

Create a foreign key column. The reference target is captured live and
resolved at `buildTable()` time, so forward references (e.g. `fk(other.id)`
declared before `table("other", ...)`) work.

The FK column type is currently fixed to `integer`. If the target is a
`bigid()` (`bigserial`) or `uuid()` PK, declare the FK column with the
matching type explicitly until per-target type inference is added.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `target` | [`AppKitColumn`](Interface.AppKitColumn.md) | The target column to reference. |

## Returns

[`FkColumnChain`](Interface.FkColumnChain.md)

A FK column chain. `onDelete`/`onUpdate` return the FK chain so
order does not matter; chain methods (`.notNull()`, `.unique()`, etc.) also
return the FK chain so `.notNull().onDelete("cascade")` typechecks.
13 changes: 13 additions & 0 deletions docs/docs/api/appkit/Function.id.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Function: id()

```ts
function id(): AppKitColumnChain;
```

Create a primary key column with a serial type.

## Returns

[`AppKitColumnChain`](Interface.AppKitColumnChain.md)

The wrapped column chain.
13 changes: 13 additions & 0 deletions docs/docs/api/appkit/Function.integer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Function: integer()

```ts
function integer(): AppKitColumnChain;
```

Create an integer column.

## Returns

[`AppKitColumnChain`](Interface.AppKitColumnChain.md)

The wrapped column chain.
18 changes: 18 additions & 0 deletions docs/docs/api/appkit/Function.isPrivateColumn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Function: isPrivateColumn()

```ts
function isPrivateColumn(table: AppKitTable, columnName: string): boolean;
```

Returns true if `columnName` is marked `.private()` on `table`.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `table` | [`AppKitTable`](Interface.AppKitTable.md) |
| `columnName` | `string` |

## Returns

`boolean`
13 changes: 13 additions & 0 deletions docs/docs/api/appkit/Function.jsonb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Function: jsonb()

```ts
function jsonb(): AppKitColumnChain;
```

Create a jsonb column.

## Returns

[`AppKitColumnChain`](Interface.AppKitColumnChain.md)

The wrapped column chain.
17 changes: 17 additions & 0 deletions docs/docs/api/appkit/Function.nonPrivateColumnNames.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Function: nonPrivateColumnNames()

```ts
function nonPrivateColumnNames(table: AppKitTable): string[];
```

Returns the column names of `table` that are NOT marked `.private()`.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `table` | [`AppKitTable`](Interface.AppKitTable.md) |

## Returns

`string`[]
17 changes: 17 additions & 0 deletions docs/docs/api/appkit/Function.privateColumnNames.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Function: privateColumnNames()

```ts
function privateColumnNames(table: AppKitTable): string[];
```

Returns the column names of `table` that ARE marked `.private()`.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `table` | [`AppKitTable`](Interface.AppKitTable.md) |

## Returns

`string`[]
13 changes: 13 additions & 0 deletions docs/docs/api/appkit/Function.text.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Function: text()

```ts
function text(): AppKitColumnChain;
```

Create a text column.

## Returns

[`AppKitColumnChain`](Interface.AppKitColumnChain.md)

The wrapped column chain.
13 changes: 13 additions & 0 deletions docs/docs/api/appkit/Function.timestamp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Function: timestamp()

```ts
function timestamp(): AppKitColumnChain;
```

Create a timestamp column.

## Returns

[`AppKitColumnChain`](Interface.AppKitColumnChain.md)

The wrapped column chain.
13 changes: 13 additions & 0 deletions docs/docs/api/appkit/Function.uuid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Function: uuid()

```ts
function uuid(): AppKitColumnChain;
```

Create a uuid column.

## Returns

[`AppKitColumnChain`](Interface.AppKitColumnChain.md)

The wrapped column chain.
19 changes: 19 additions & 0 deletions docs/docs/api/appkit/Function.varchar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Function: varchar()

```ts
function varchar(length: number): AppKitColumnChain;
```

Create a varchar column.

## Parameters

| Parameter | Type | Default value | Description |
| ------ | ------ | ------ | ------ |
| `length` | `number` | `255` | The length of the column. |

## Returns

[`AppKitColumnChain`](Interface.AppKitColumnChain.md)

The wrapped column chain.
23 changes: 23 additions & 0 deletions docs/docs/api/appkit/Interface.AppKitColumn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Interface: AppKitColumn

An AppKit column. This is returned by the column builder methods.

## Extended by

- [`AppKitColumnChain`](Interface.AppKitColumnChain.md)

## Properties

### $builder

```ts
$builder: unknown;
```

***

### $meta

```ts
$meta: ColumnMeta;
```
Loading
Loading