Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</a>
</div>

> V3 is currently in alpha phase and not ready for production use. Feedback and bug reports are greatly appreciated. Please visit this dedicated [discord channel](https://discord.com/channels/1035538056146595961/1352359627525718056) for chat and support.
> V3 is currently in beta phase and not ready for production use. Feedback and bug reports are greatly appreciated. Please visit this dedicated [discord channel](https://discord.com/channels/1035538056146595961/1352359627525718056) for chat and support.

# What's ZenStack

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ export abstract class BaseCrudDialect<Schema extends SchemaDef> {
return (node as ValueNode).value === false || (node as ValueNode).value === 0;
}

protected and(eb: ExpressionBuilder<any, any>, ...args: Expression<SqlBool>[]) {
and(eb: ExpressionBuilder<any, any>, ...args: Expression<SqlBool>[]) {
const nonTrueArgs = args.filter((arg) => !this.isTrue(arg));
if (nonTrueArgs.length === 0) {
return this.true(eb);
Expand All @@ -1115,7 +1115,7 @@ export abstract class BaseCrudDialect<Schema extends SchemaDef> {
}
}

protected or(eb: ExpressionBuilder<any, any>, ...args: Expression<SqlBool>[]) {
or(eb: ExpressionBuilder<any, any>, ...args: Expression<SqlBool>[]) {
const nonFalseArgs = args.filter((arg) => !this.isFalse(arg));
if (nonFalseArgs.length === 0) {
return this.false(eb);
Expand All @@ -1126,7 +1126,7 @@ export abstract class BaseCrudDialect<Schema extends SchemaDef> {
}
}

protected not(eb: ExpressionBuilder<any, any>, ...args: Expression<SqlBool>[]) {
not(eb: ExpressionBuilder<any, any>, ...args: Expression<SqlBool>[]) {
return eb.not(this.and(eb, ...args));
}

Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/client/crud/dialects/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { match } from 'ts-pattern';
import type { SchemaDef } from '../../../schema';
import type { ClientOptions } from '../../options';
import type { BaseCrudDialect } from './base';
import type { BaseCrudDialect } from './base-dialect';
import { PostgresCrudDialect } from './postgresql';
import { SqliteCrudDialect } from './sqlite';

Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/client/crud/dialects/postgresql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
requireField,
requireModel,
} from '../../query-utils';
import { BaseCrudDialect } from './base';
import { BaseCrudDialect } from './base-dialect';

export class PostgresCrudDialect<Schema extends SchemaDef> extends BaseCrudDialect<Schema> {
override get provider() {
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/client/crud/dialects/sqlite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
requireField,
requireModel,
} from '../../query-utils';
import { BaseCrudDialect } from './base';
import { BaseCrudDialect } from './base-dialect';

export class SqliteCrudDialect<Schema extends SchemaDef> extends BaseCrudDialect<Schema> {
override get provider() {
Expand Down
Loading