MCPcopy Index your code
hub / github.com/anomalyco/kysely-data-api

github.com/anomalyco/kysely-data-api @v2.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.0 ↗ · + Follow
59 symbols 91 edges 12 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Kysely Data Api

This library adds AWS RDS Data Api support for kysely. It has support for both MySQL and Postgres

Usage

const dataApi = new DataApiDialect({
  mode: "mysql",
  driver: {
    client: new RDSDataService(),
    database: "bench",
    secretArn: "<arn of secret containing credentials",
    resourceArn: "<arn of database>",
  },
});

export const db = new Kysely<Database>({ dialect: dataApi });

Extension points exported contracts — how you extend this code

Person (Interface)
(no doc)
test/harness.ts
RawSchemaMetadata (Interface)
(no doc)
src/postgres-introspector.ts
Pet (Interface)
(no doc)
test/harness.ts
RawColumnMetadata (Interface)
(no doc)
src/postgres-introspector.ts
Database (Interface)
(no doc)
test/harness.ts

Core symbols most depended-on inside this repo

parseToISOString
called by 3
src/data-api-query-compiler.ts
serialize
called by 2
src/data-api-query-compiler.ts
fixISOString
called by 2
src/data-api-query-compiler.ts
migrate
called by 1
test/harness.ts
reset
called by 1
test/harness.ts
getTables
called by 1
src/postgres-introspector.ts
#parseTableMetadata
called by 1
src/postgres-introspector.ts
beginTransaction
called by 1
src/data-api-driver.ts

Shape

Method 30
Class 14
Function 10
Interface 5

Languages

TypeScript100%

Modules by API surface

src/data-api-driver.ts19 symbols
src/data-api-query-compiler.ts17 symbols
src/postgres-introspector.ts9 symbols
src/data-api-dialect.ts7 symbols
test/harness.ts5 symbols
test/migrations/test-migration1.js2 symbols

For agents

$ claude mcp add kysely-data-api \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact