New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pgsql-ast-parser

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pgsql-ast-parser - npm Package Compare versions

Comparing version 10.1.0 to 10.2.0

src/syntax/refresh-materialized-view.ne

2

ast-mapper.d.ts

@@ -53,2 +53,3 @@ import * as a from './syntax/ast';

createMaterializedView?: (val: a.CreateMaterializedViewStatement) => a.Statement | nil;
refreshMaterializedView?: (val: a.RefreshMaterializedViewStatement) => a.Statement | nil;
from?: (from: a.From) => a.From | nil;

@@ -143,2 +144,3 @@ fromCall?: (from: a.FromCall) => a.From | nil;

createMaterializedView(val: a.CreateMaterializedViewStatement): a.Statement | nil;
refreshMaterializedView(val: a.RefreshMaterializedViewStatement): a.Statement | nil;
do(val: a.DoStatement): a.Statement | nil;

@@ -145,0 +147,0 @@ createFunction(val: a.CreateFunctionStatement): a.Statement | nil;

4

package.json
{
"name": "pgsql-ast-parser",
"version": "10.1.0",
"version": "10.2.0",
"description": "Yet another simple Postgres SQL parser/modifier",

@@ -11,3 +11,3 @@ "main": "index.js",

"release": "npm run release-node && npm run release-deno",
"release-node": "git diff --exit-code && npm run test && npm run cover && npm run build && cp -r src lib/src && npm run build:deno && deno run deno-test.ts && npm publish lib",
"release-node": "git diff --exit-code && npm run test && npm run cover && npm run build && cp -r src lib/src && npm run build:deno && deno run deno-test.ts && cd lib && npm publish && cd ..",
"release-deno": "git add -A && git commit -m \"Build deno [autogenerated commit]\" && PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag $PACKAGE_VERSION && git push --tags",

@@ -14,0 +14,0 @@ "typecheck": "tsc --project tsconfig.json --noEmit",

@@ -56,2 +56,3 @@ import * as a from './syntax/ast';

createMaterializedView?: (val: a.CreateMaterializedViewStatement) => a.Statement | nil
refreshMaterializedView?: (val: a.RefreshMaterializedViewStatement) => a.Statement | nil
from?: (from: a.From) => a.From | nil

@@ -277,2 +278,4 @@ fromCall?: (from: a.FromCall) => a.From | nil

return this.createMaterializedView(val);
case 'refresh materialized view':
return this.refreshMaterializedView(val);
case 'create schema':

@@ -332,3 +335,7 @@ return this.createSchema(val);

refreshMaterializedView(val: a.RefreshMaterializedViewStatement): a.Statement | nil {
return val;
}
do(val: a.DoStatement): a.Statement | nil {

@@ -335,0 +342,0 @@ return val;

@@ -29,2 +29,3 @@ // import { IType } from '../../interfaces';

| CreateMaterializedViewStatement
| RefreshMaterializedViewStatement
| AlterTableStatement

@@ -427,3 +428,10 @@ | AlterSequenceStatement

export interface RefreshMaterializedViewStatement extends PGNode {
type: 'refresh materialized view';
name: QName;
concurrently?: boolean;
withData?: boolean;
}
export interface CreateTableStatement extends PGNode {

@@ -430,0 +438,0 @@ type: 'create table';

@@ -1233,2 +1233,13 @@ import { IAstPartialMapper, AstDefaultMapper } from './ast-mapper';

refreshMaterializedView: val => {
ret.push('REFRESH MATERIALIZED VIEW ');
if (val.concurrently) {
ret.push('CONCURRENTLY ');
}
m.tableRef(val.name);
if (typeof val.withData === 'boolean') {
ret.push(val.withData ? ' WITH DATA' : ' WITH NO DATA');
}
},
select: s => m.super().select(s),

@@ -1235,0 +1246,0 @@

import { nil } from '../utils';
export declare function locationOf(node: PGNode): NodeLocation;
export declare type Statement = SelectStatement | CreateTableStatement | CreateSequenceStatement | CreateIndexStatement | CreateExtensionStatement | CommitStatement | InsertStatement | UpdateStatement | ShowStatement | PrepareStatement | DeallocateStatement | DeleteStatement | WithStatement | RollbackStatement | TablespaceStatement | CreateViewStatement | CreateMaterializedViewStatement | AlterTableStatement | AlterSequenceStatement | SetGlobalStatement | SetTimezone | CreateEnumType | CreateCompositeType | TruncateTableStatement | DropStatement | CommentStatement | CreateSchemaStatement | WithRecursiveStatement | RaiseStatement | ValuesStatement | CreateFunctionStatement | DropFunctionStatement | DoStatement | BeginStatement | StartTransactionStatement;
export declare type Statement = SelectStatement | CreateTableStatement | CreateSequenceStatement | CreateIndexStatement | CreateExtensionStatement | CommitStatement | InsertStatement | UpdateStatement | ShowStatement | PrepareStatement | DeallocateStatement | DeleteStatement | WithStatement | RollbackStatement | TablespaceStatement | CreateViewStatement | CreateMaterializedViewStatement | RefreshMaterializedViewStatement | AlterTableStatement | AlterSequenceStatement | SetGlobalStatement | SetTimezone | CreateEnumType | CreateCompositeType | TruncateTableStatement | DropStatement | CommentStatement | CreateSchemaStatement | WithRecursiveStatement | RaiseStatement | ValuesStatement | CreateFunctionStatement | DropFunctionStatement | DoStatement | BeginStatement | StartTransactionStatement;
export interface PGNode {

@@ -313,2 +313,8 @@ _location?: NodeLocation;

}
export interface RefreshMaterializedViewStatement extends PGNode {
type: 'refresh materialized view';
name: QName;
concurrently?: boolean;
withData?: boolean;
}
export interface CreateTableStatement extends PGNode {

@@ -315,0 +321,0 @@ type: 'create table';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc