Skip to content

Commit

Permalink
feat(driver): implement mysql driver
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Nov 4, 2023
1 parent b1e7e7f commit 87f2afd
Show file tree
Hide file tree
Showing 25 changed files with 4,424 additions and 166 deletions.
25 changes: 5 additions & 20 deletions src/database/builders/QueryBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,10 +614,7 @@ export class QueryBuilder<Client = any, QB = any> {
/**
* Set a where not statement in your query.
*/
public whereNot(
statement: string | Record<string, any>,
value?: any
): QueryBuilder {
public whereNot(statement: any, value?: any): QueryBuilder {
this.driver.whereNot(statement, value)

return this
Expand Down Expand Up @@ -666,10 +663,7 @@ export class QueryBuilder<Client = any, QB = any> {
/**
* Set a where ILike statement in your query.
*/
public whereILike(
statement: string | Record<string, any>,
value?: any
): QueryBuilder {
public whereILike(statement: any, value?: any): QueryBuilder {
this.driver.whereILike(statement, value)

return this
Expand Down Expand Up @@ -741,10 +735,7 @@ export class QueryBuilder<Client = any, QB = any> {
/**
* Set an or where not statement in your query.
*/
public orWhereNot(
statement: string | Record<string, any>,
value?: any
): QueryBuilder {
public orWhereNot(statement: any, value?: any): QueryBuilder {
this.driver.orWhereNot(statement, value)

return this
Expand Down Expand Up @@ -784,10 +775,7 @@ export class QueryBuilder<Client = any, QB = any> {
/**
* Set an or where like statement in your query.
*/
public orWhereLike(
statement: string | Record<string, any>,
value?: any
): QueryBuilder {
public orWhereLike(statement: any, value?: any): QueryBuilder {
this.driver.orWhereLike(statement, value)

return this
Expand All @@ -796,10 +784,7 @@ export class QueryBuilder<Client = any, QB = any> {
/**
* Set an or where ILike statement in your query.
*/
public orWhereILike(
statement: string | Record<string, any>,
value?: any
): QueryBuilder {
public orWhereILike(statement: any, value?: any): QueryBuilder {
this.driver.orWhereILike(statement, value)

return this
Expand Down
Loading

0 comments on commit 87f2afd

Please sign in to comment.