Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
oguimbal committed Jan 11, 2024
1 parent 591fec5 commit 09cf099
Show file tree
Hide file tree
Showing 68 changed files with 131 additions and 90 deletions.
12 changes: 0 additions & 12 deletions .deno/adapters/adapters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,18 +355,6 @@ export class Adapters implements LibAdapters {
}
}

// hack: this query is not supported by pgsql-ast-parser
if (!this._mikroPatched) {
this.db.public.interceptQueries(q => {
if (q === `set names 'utf8';`) {
return [];
}
return null;
});
this._mikroPatched = true;
}


const orm = await MikroORM.init({
...mikroOrmOptions,
dbName: 'public',
Expand Down
2 changes: 1 addition & 1 deletion .deno/column.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { _Column, IValue, _IIndex, NotSupported, _Transaction, QueryError, _IType, SchemaField, ChangeHandler, nil, ISubscription, DropHandler } from './interfaces-private.ts';
import type { MemoryTable } from './table.ts';
import { Evaluator } from './evaluator.ts';
import { ColumnConstraint, AlterColumn } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { ColumnConstraint, AlterColumn } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { nullIsh } from './utils.ts';
import { columnEvaluator } from './transforms/selection.ts';
import { BIndex } from './schema/btree-index.ts';
Expand Down
2 changes: 1 addition & 1 deletion .deno/constraints/foreign-key.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ISubscription, NotSupported, QueryError } from '../interfaces.ts';
import { Expr, ExprBinary, TableConstraintForeignKey } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { Expr, ExprBinary, TableConstraintForeignKey } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { asTable, CreateIndexColDef, _IConstraint, _ITable, _Transaction } from '../interfaces-private.ts';
import { nullIsh } from '../utils.ts';

Expand Down
2 changes: 1 addition & 1 deletion .deno/constraints/generated.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ISubscription, NotSupported, QueryError } from '../interfaces.ts';
import { AlterColumnAddGenerated, nil } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { AlterColumnAddGenerated, nil } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { _Column, _IConstraint, _ITable, _Transaction } from '../interfaces-private.ts';
import { nullIsh } from '../utils.ts';

Expand Down
2 changes: 1 addition & 1 deletion .deno/datatypes/datatypes-geometric.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DataType, QueryError } from '../interfaces.ts';
import { _IType } from '../interfaces-private.ts';
import { Box, Circle, Line, Path, Point, Polygon, Segment } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { Box, Circle, Line, Path, Point, Polygon, Segment } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { Evaluator } from '../evaluator.ts';
import { TypeBase } from './datatype-base.ts';

Expand Down
8 changes: 5 additions & 3 deletions .deno/datatypes/datatypes.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { IValue, _IIndex, _ISelection, _IType, _ISchema } from '../interfaces-private.ts';
import { IValue, _IType } from '../interfaces-private.ts';
import { DataType, CastError, IType, QueryError, nil } from '../interfaces.ts';
import { nullIsh } from '../utils.ts';
import { Evaluator, Value } from '../evaluator.ts';
import { parseArrayLiteral } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { parseGeometricLiteral } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { parseArrayLiteral } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { parseGeometricLiteral } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { bufCompare, bufFromString, bufToString, TBuffer } from '../misc/buffer-deno.ts';
import { TypeBase } from './datatype-base.ts';
import { BoxType, CircleType, LineType, LsegType, PathType, PointType, PolygonType } from './datatypes-geometric.ts';
Expand Down Expand Up @@ -712,7 +712,9 @@ export const typeSynonyms: { [key: string]: DataType | { type: DataType; ignoreC

'int': DataType.integer,
'int4': DataType.integer,
'int8': DataType.bigint,
'serial': DataType.integer,
'serial8': DataType.bigint,
'bigserial': DataType.integer,
'smallserial': DataType.integer,
'smallint': DataType.integer,
Expand Down
10 changes: 8 additions & 2 deletions .deno/datatypes/t-custom-enum.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { Evaluator } from '../evaluator.ts';
import { TypeBase } from './datatype-base.ts';
import { CastError, DataType, nil, QueryError } from '../interfaces.ts';
import { _ISchema, _IType, _Transaction } from '../interfaces-private.ts';
import { DataType, nil, QueryError } from '../interfaces.ts';
import {_IRelation, _ISchema, _IType, _Transaction} from '../interfaces-private.ts';

export function asEnum(o: _IRelation | null): CustomEnumType {
if (o && o.type === 'type' && o instanceof CustomEnumType) {
return o;
}
throw new QueryError(`"${o?.name}" is not a enum`);
}
export class CustomEnumType extends TypeBase<string> {

get primary(): DataType {
Expand Down
2 changes: 1 addition & 1 deletion .deno/datatypes/t-interval.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DataType, nil, _IType } from '../interfaces-private.ts';
import { Interval, normalizeInterval, parseIntervalLiteral } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { Interval, normalizeInterval, parseIntervalLiteral } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { TypeBase } from './datatype-base.ts';
import { Evaluator } from '../evaluator.ts';
import { intervalToSec } from '../utils.ts';
Expand Down
2 changes: 1 addition & 1 deletion .deno/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { buildDistinct } from './transforms/distinct.ts';
import { buildOrderBy } from './transforms/order-by.ts';
import { setupPgCatalog } from './schema/pg-catalog/index.ts';
import { setupInformationSchema } from './schema/information-schema/index.ts';
import { QName, BinaryOperator } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { QName, BinaryOperator } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { asSingleQName } from './utils.ts';

export function newDb(opts?: MemoryDbOptions): IMemoryDb {
Expand Down
2 changes: 1 addition & 1 deletion .deno/evaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import hash from 'https://deno.land/x/[email protected]/mod.ts';
import { Types, ArrayType, isNumeric, reconciliateTypes } from './datatypes/index.ts';
import { buildCall } from './parser/function-call.ts';
import { nullIsh, executionCtx } from './utils.ts';
import { QName } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { QName } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';


export class Evaluator<T = any> implements IValue<T> {
Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/exec-utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { QName, Statement, NodeLocation, toSql } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { QName, Statement, NodeLocation, toSql } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { _ISchema, QueryError, _Transaction, _IDb } from '../interfaces-private.ts';

export function checkExistence(schema: _ISchema, name: QName, ifNotExists: boolean | undefined, act: () => void): boolean {
Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/records-mutations/deletion.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _ITable, _Transaction, IValue, _Explainer, _ISchema, asTable, _ISelection, _IIndex, _IStatement } from '../../interfaces-private.ts';
import { DeleteStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { DeleteStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { MutationDataSourceBase } from './mutation-base.ts';
import { buildCtx } from '../../parser/context.ts';

Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/records-mutations/insert.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _ITable, _Transaction, IValue, _Explainer, nil, _ISchema, asTable, _ISelection, _IIndex, QueryError, OnConflictHandler, ChangeOpts, _IStatement, NotSupported } from '../../interfaces-private.ts';
import { InsertStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { InsertStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { buildValue } from '../../parser/expression-builder.ts';
import { Types } from '../../datatypes/index.ts';
import { JoinSelection } from '../../transforms/join.ts';
Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/records-mutations/mutation-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { DataSourceBase } from '../../transforms/transform-base.ts';
import { ArrayFilter } from '../../transforms/array-filter.ts';
import { cleanResults } from '../clean-results.ts';
import { _ISelection, _ISchema, _ITable, _Transaction, IValue, _IIndex, _Explainer, _IStatement, QueryError, _Column } from '../../interfaces-private.ts';
import { InsertStatement, UpdateStatement, DeleteStatement, SetStatement, ExprRef } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { InsertStatement, UpdateStatement, DeleteStatement, SetStatement, ExprRef } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { buildSelection } from '../../transforms/selection.ts';
import { MemoryTable } from '../../table.ts';
import { buildValue } from '../../parser/expression-builder.ts';
Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/records-mutations/truncate-table.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _ISchema, _Transaction, SchemaField, NotSupported, _ITable, _IStatementExecutor, asTable, StatementResult, _IStatement, TruncateOpts } from '../../interfaces-private.ts';
import { TruncateTableStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { TruncateTableStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ExecHelper } from '../exec-utils.ts';
import { buildCtx } from '../../parser/context.ts';

Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/records-mutations/update.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _ITable, _Transaction, _Explainer, _ISchema, asTable, _ISelection, _IIndex, _IStatement } from '../../interfaces-private.ts';
import { UpdateStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { UpdateStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { MutationDataSourceBase, Setter, createSetter } from './mutation-base.ts';
import { buildCtx } from '../../parser/context.ts';
import { buildSelect } from '../select.ts';
Expand Down
45 changes: 45 additions & 0 deletions .deno/execution/schema-amends/alter-enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import {
_ISchema,
_Transaction,
_IStatementExecutor,
_IStatement,
} from '../../interfaces-private';
import { AlterEnumType } from 'https://deno.land/x/[email protected]/mod.ts';
import { ExecHelper } from '../exec-utils.ts';
import { ignore } from '../../utils.ts';
import { asEnum, CustomEnumType } from '../../datatypes/t-custom-enum.ts';

export class AlterEnum extends ExecHelper implements _IStatementExecutor {
private onSchema: _ISchema;
private originalEnum: CustomEnumType;
constructor({ schema }: _IStatement, private p: AlterEnumType) {
super(p);
this.onSchema = schema.getThisOrSiblingFor(p.name);
this.originalEnum = asEnum(schema.getObject(p.name))
if (!this.onSchema) {
ignore(this.p)
}
}

execute(t: _Transaction) {
// commit pending data before making changes
// (because the index sequence creation does support further rollbacks)
t = t.fullCommit();
const enumValues = this.originalEnum.values

switch (this.p.change.type) {
case 'add value':
enumValues.push(this.p.change.add.value)
break;
case 'rename':
this.originalEnum.drop(t)
this.onSchema.registerEnum(this.p.change.to.name, enumValues)
break;
}

// new implicit transaction
t = t.fork();

return this.noData(t, 'ALTER');
}
}
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/alter-sequence.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _ISchema, _Transaction, _ISequence, _IStatementExecutor, _IStatement, asSeq } from '../../interfaces-private.ts';
import { AlterSequenceStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { AlterSequenceStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ExecHelper } from '../exec-utils.ts';
import { ignore } from '../../utils.ts';

Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/alter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _ISchema, _Transaction, SchemaField, NotSupported, _ITable, _IStatementExecutor, asTable, QueryError, _IStatement } from '../../interfaces-private.ts';
import { AlterTableStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { AlterTableStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ignore } from '../../utils.ts';
import { ExecHelper } from '../exec-utils.ts';

Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/create-enum.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _Transaction, _ISchema, NotSupported, CreateIndexColDef, _ITable, CreateIndexDef, _IStatement, _IStatementExecutor } from '../../interfaces-private.ts';
import { CreateEnumType } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { CreateEnumType } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ExecHelper } from '../exec-utils.ts';

export class CreateEnum extends ExecHelper implements _IStatementExecutor {
Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/create-function.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _Transaction, _ISchema, NotSupported, _ITable, _IStatement, _IStatementExecutor, QueryError, _ArgDefDetails, IType, _IType, nil, FunctionDefinition } from '../../interfaces-private.ts';
import { CreateFunctionStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { CreateFunctionStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ExecHelper } from '../exec-utils.ts';
import { buildValue } from '../../parser/expression-builder.ts';
import { Types } from '../../datatypes/index.ts';
Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/create-index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _Transaction, asTable, _ISchema, NotSupported, CreateIndexColDef, _ITable, CreateIndexDef, _IStatement, _IStatementExecutor } from '../../interfaces-private.ts';
import { CreateIndexStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { CreateIndexStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ignore } from '../../utils.ts';
import { ExecHelper } from '../exec-utils.ts';
import { buildValue } from '../../parser/expression-builder.ts';
Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/create-materialized-view.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _Transaction, asTable, _ISchema, NotSupported, CreateIndexColDef, _ITable, CreateIndexDef, _IStatement, _IStatementExecutor, asView, _IView, QueryError } from '../../interfaces-private.ts';
import { CreateMaterializedViewStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { CreateMaterializedViewStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ExecHelper } from '../exec-utils.ts';
import { View } from '../../schema/view.ts';
import { buildSelect } from '../select.ts';
Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/create-schema.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _Transaction, asTable, _ISchema, NotSupported, CreateIndexColDef, _ITable, CreateIndexDef, _IStatement, _IStatementExecutor, QueryError } from '../../interfaces-private.ts';
import { CreateSchemaStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { CreateSchemaStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ExecHelper } from '../exec-utils.ts';
import { ignore } from '../../utils.ts';

Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/create-sequence.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _ISchema, _Transaction, NotSupported, _ISequence, _IStatementExecutor } from '../../interfaces-private.ts';
import { QName, CreateSequenceStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { QName, CreateSequenceStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { Sequence } from '../../schema/sequence.ts';
import { checkExistence, ExecHelper } from '../exec-utils.ts';

Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/create-table.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _ISchema, _Transaction, SchemaField, NotSupported, _ITable, _IStatementExecutor, Schema, DataType, QueryError } from '../../interfaces-private.ts';
import { CreateTableStatement, QName } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { CreateTableStatement, QName } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ignore, Optional } from '../../utils.ts';
import { checkExistence, ExecHelper } from '../exec-utils.ts';
import { buildCtx } from '../../parser/context.ts';
Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/create-view.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _Transaction, asTable, _ISchema, NotSupported, CreateIndexColDef, _ITable, CreateIndexDef, _IStatement, _IStatementExecutor, asView, _IView, QueryError } from '../../interfaces-private.ts';
import { CreateViewStatement, SelectedColumn } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { CreateViewStatement, SelectedColumn } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ExecHelper } from '../exec-utils.ts';
import { ignore } from '../../utils.ts';
import { View } from '../../schema/view.ts';
Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/do.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _IStatementExecutor, _Transaction, StatementResult, _IStatement, CompiledFunction } from '../../interfaces-private.ts';
import { DoStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { DoStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ExecHelper } from '../../execution/exec-utils.ts';

export class DoStatementExec extends ExecHelper implements _IStatementExecutor {
Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/drop-index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _ISchema, _Transaction, _ISequence, _IStatementExecutor, _IStatement, asSeq, asIndex, _INamedIndex } from '../../interfaces-private.ts';
import { DropStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { DropStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ExecHelper } from '../exec-utils.ts';
import { ignore, notNil } from '../../utils.ts';

Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/drop-sequence.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _ISchema, _Transaction, _ISequence, _IStatementExecutor, _IStatement, asSeq } from '../../interfaces-private.ts';
import { DropStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { DropStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ExecHelper } from '../exec-utils.ts';
import { ignore, notNil } from '../../utils.ts';

Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/drop-table.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _ISchema, _Transaction, _ISequence, _IStatementExecutor, _IStatement, asSeq, asIndex, _INamedIndex, _ITable, asTable } from '../../interfaces-private.ts';
import { DropStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { DropStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ExecHelper } from '../exec-utils.ts';
import { ignore, notNil } from '../../utils.ts';

Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/schema-amends/drop-type.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _ISchema, _Transaction, _ISequence, _IStatementExecutor, _IStatement, asSeq, asType, _IType } from '../../interfaces-private.ts';
import { DropStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { DropStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ExecHelper } from '../exec-utils.ts';
import { ignore, notNil } from '../../utils.ts';

Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/select.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _IStatementExecutor, _Transaction, StatementResult, _IStatement, _ISelection, NotSupported, QueryError, asSelectable, nil, OnStatementExecuted, _ISchema } from '../interfaces-private.ts';
import { WithStatementBinding, SelectStatement, SelectFromUnion, WithStatement, ValuesStatement, SelectFromStatement, QNameMapped, Name, SelectedColumn, Expr, OrderByStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { WithStatementBinding, SelectStatement, SelectFromUnion, WithStatement, ValuesStatement, SelectFromStatement, QNameMapped, Name, SelectedColumn, Expr, OrderByStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { Deletion } from './records-mutations/deletion.ts';
import { Update } from './records-mutations/update.ts';
import { Insert } from './records-mutations/insert.ts';
Expand Down
4 changes: 2 additions & 2 deletions .deno/execution/set.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { _IStatementExecutor, _Transaction, StatementResult, GLOBAL_VARS, QueryError } from '../interfaces-private.ts';
import { SetGlobalStatement, SetTimezone } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { SetGlobalStatement, SetTimezone, SetNames } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { ignore } from '../utils.ts';
import { ExecHelper } from './exec-utils.ts';

export class SetExecutor extends ExecHelper implements _IStatementExecutor {

constructor(private p: SetGlobalStatement | SetTimezone) {
constructor(private p: SetGlobalStatement | SetTimezone | SetNames) {
super(p);
// todo handle set statements timezone ?
// They are just ignored as of today (in order to handle pg_dump exports)
Expand Down
2 changes: 1 addition & 1 deletion .deno/execution/show.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { _IStatementExecutor, _Transaction, StatementResult, GLOBAL_VARS, QueryError } from '../interfaces-private.ts';
import { ShowStatement } from 'https://deno.land/x/pgsql_ast_parser@11.0.1/mod.ts';
import { ShowStatement } from 'https://deno.land/x/pgsql_ast_parser@12.0.1/mod.ts';
import { locOf } from './exec-utils.ts';

export class ShowExecutor implements _IStatementExecutor {
Expand Down
Loading

0 comments on commit 09cf099

Please sign in to comment.