type alias DataSource
Since 0.1.0
Deprecated

Use IDataSource from @setu-ts/common instead — the port was promoted there in M52c so a backend living in another package can implement it. This alias is the same type and keeps working; it will be removed in the next major version.

The data-access seam adapter-specific implementations provide, keeping BaseRepository decoupled from concrete ORM clients.

Examples

Example 1

// Before
import type { DataSource } from '@setu-ts/database-plugin';
// After
import type { EntityKey, IDataSource } from '@setu-ts/common';

Definition

Usage

import { type DataSource } from "database-plugin/src/index.ts";