mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
50 lines
794 B
C++
50 lines
794 B
C++
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// pgScript - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2002 - 2016, The pgAdmin Development Team
|
|
// This software is released under the PostgreSQL Licence
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
#ifndef PGSSTMT_H_
|
|
#define PGSSTMT_H_
|
|
|
|
#include "pgscript/pgScript.h"
|
|
#include "pgscript/objects/pgsVariable.h"
|
|
|
|
class pgsThread;
|
|
|
|
class pgsStmt
|
|
{
|
|
|
|
private:
|
|
|
|
unsigned int m_line;
|
|
|
|
protected:
|
|
|
|
pgsThread *m_app;
|
|
|
|
public:
|
|
|
|
pgsStmt(pgsThread *app = 0);
|
|
|
|
virtual ~pgsStmt();
|
|
|
|
void set_position(int line);
|
|
|
|
int line() const;
|
|
|
|
virtual void eval(pgsVarMap &vars) const = 0;
|
|
|
|
private:
|
|
|
|
pgsStmt(const pgsStmt &that);
|
|
|
|
pgsStmt &operator=(const pgsStmt &that);
|
|
|
|
};
|
|
|
|
#endif /*PGSSTMT_H_*/
|