Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement dialect agnostic alias #2977

Open
wants to merge 3 commits into
base: beta
Choose a base branch
from

Conversation

L-Mario564
Copy link
Collaborator

Addresses #397.

This PR adds an alias function that works just like the existing dialect specific ones, but it can be used with any dialect.

// These dialect specific ones are now deprecated
import { alias } from 'drizzle-orm/mysql-core';
import { alias } from 'drizzle-orm/pg-core';
import { alias } from 'drizzle-orm/sqlite-core';

// This one function does the same as all the dialect specific ones
import { alias } from 'drizzle-orm';

As stated in the comment, the dialect specific alias functions have been marked as deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant