Граф коммитов

11 Коммитов

Автор SHA1 Сообщение Дата
Daeun Yim a531607bb6
Psycopg version bump 2 to 3 (#428)
* Fix broken language service

* Fixing tests

* remove qt literals

* Fix test codes

* Fix psycopg2 code

* autopep

* test debugger

* Fix psycopg2 references
2023-06-14 14:48:16 -07:00
Kevin Mao 483ff6b177
Refactor tools service to support MySQL provider (#267)
* Merge with MySQL/MariaDB branch

* Adjust services to be provider flexible, added MySQL support and re-branded pgtooslservice to ossdbtoolsservice.
2020-08-12 17:24:41 -04:00
Benjamin Russell 35b18b74f6 PGSMO: Scripting Mixins (#101)
* Mixins for collation work!

* Create mixins for most other things work. Lots of futsing with the unit tests

* Creating mixin for delete

* Creating mixin for update

* Adding unittests for scripting mixins

* Adding unittests for mixins in the classes
Fixing Collation unittests

* Fixing smo edit table metadata tests

* Patching up datatype, disabling mixin testing in the node_base

* Flake8 stuff

* Fixes as per Matt's PR comments

* Rewriting unit tests for scripting service

* Fixing template renderer as per PR comments
Adding tests for template rendering with macros
Adding back tests for scripter

* flake8 nonsense
2017-08-25 09:42:55 -07:00
Benjamin Russell d3a8f00053 Remove Connection Dependency for Scripting (#98)
* Removing connection from script methods

* Merge changes

* Removing extraneous server_version method

* Fixing bug with connection variable.

* flake8 nonsense
2017-08-21 16:14:33 -07:00
Anup N. Kamath 9ba60ae574 Akamath46297/scripting/functions (#82)
* Initial scripting changes for functions

* Additional changes

* Fixed comments
2017-08-11 16:20:43 -07:00
Aditya Bist e6719e6087 added tablespaces with tests (#78) 2017-08-10 13:49:30 -07:00
Benjamin Russell 5fe67b63cb Parents of NodeObject (#65)
* Implement NodeObject to contain Server instead of ServerConnection

* Changing the NodeObject to take a Server instead of a ServerConnection

* Unit test to make sure new server properties work

* Making the tests work again

* Refactoring all objects to take a server

* Adding support for parent to NodeObject

* Adding parent to all the node objects

* Adding unit tests and parent type validation

* Flake8 stuff and things

* Changes as per PR comments
2017-07-25 13:13:56 -07:00
Benjamin Russell 3f09057600 PGSMO: Refactor NodeObject.get_nodes_for_parent (#58)
* Making NodeCollection a generic
Using the node object property validation utility in all object unit tests

* Refactoring get_nodes_for_parent into the NodeObject class
Some tweaks to nodes.sql needed to be made to make it work generically

* Fixing view templates to only show relevent schema's views

* Fixing unit tests to support the NodeObject.get_nodes_for_parent

* Refactoring unit tests for pgsmo objs to make it even easier to write them

* Adding pgadmin copyright where it was missed

* Flake8 stuff

* Adding copyright to trigger functions

* Flake8 nonsense

* Addressing PR comments
2017-07-18 12:28:16 -07:00
Benjamin Russell 3cee508796 Adding initial unit tests for PGSMO (#49)
* Adding unit tests for querying helper
Renaming ConnectionWrapper to ServerConnection (a la SMO)
Making execute methods be methods on the ServerConnection

* Adding tests for templating, except pgAdmin code

* Adding tests for ScanKeywordExtraLookup

* Some more tests...

* Fixing more merge issues

* Fixing nonsense with conflicting package names

* Adding unittests for column class

* Adding unittests for database objects

* Adding unittests for role objects

* Adding unittests for schema objects

* Refactoring out init test which will be reused

* Refactoring out init tests to make it easier to reuse the validation code

* Adding tests for table class

* Adding tests for tablespace class

* Adding tests for view class

* Adding tests for server class

* Flake8 stuff and things

* Fixing bug from merge...

* Changes as per PR comments
2017-07-06 16:02:32 -07:00
Benjamin Russell 04168d6f09 Object Inheritance for PGSMO (#43)
* WIP

* Implementation to utilize the node query helper

* Adding base class for node objects to inherit from

* Adding node collection class that does lazy loading of child objects

* Making role and tablespaces inherit from NodeObject

* Adding unittests and some fixes as per the unittests

* Adding unit tst for get_nodes

* Fixes as per code review comments and flake8 stuffs

* Fixing small bug failing tests?
2017-07-03 17:23:23 -07:00
Benjamin Russell 74c0ce9605 Adding support for tablespaces (#34)
* Adding support for tablespaces

* Adding nicer comments, some refactoring as per PR comments
2017-06-29 14:08:29 -07:00