Commit Graph

31 Commits (master)

Author SHA1 Message Date
Chris Veilleux 26ed641b48 applied the "Black" formatter to all files and added pre-commit hook to check 2022-03-11 13:22:33 -06:00
Chris Veilleux 3295ac70a0 change loggers in selene.util to all use module name instead of package 2022-03-10 11:37:39 -06:00
Steve Penrod 9dc4d62490 Adding the basics to prepare for publishing this repo
Changes include:

* Adding AGPL 3.0 license template (TODO: Apply to all 200+ *.py files)
* Adding AGPL license files
* Add generic public repo files (CONTRIBUTING, etc)
* Simple README updates
* Adding other generic files, e.g. .github templates
2019-07-27 18:44:23 -05:00
Chris Veilleux d8ed1e10f2 removed context manager usage as resulting object could not be passed on 2019-07-08 20:05:25 -05:00
Chris Veilleux ac1e68cb45 removed code that duplicated the work done in the context manager. 2019-07-08 19:37:10 -05:00
Chris Veilleux 7c1c18d275 expose the execute method for ddl type SQL statements and add copy to/from functionality 2019-06-27 01:22:40 -05:00
Chris Veilleux 7e9887447e enhance to rollback if any issues occur within the transaction and commit if everything is successful 2019-06-27 01:21:04 -05:00
Chris Veilleux f3d3aa5709 fixed missing space in log message 2019-06-03 21:59:55 -05:00
Chris Veilleux 43ef249d00 change public API to use a different connection pooling mechanism 2019-05-22 13:12:23 -05:00
Chris Veilleux 2ee471a6e1 add api metrics table and collection. in the process, changed the database connection mechanism to only get a connection from the pool once per request. 2019-04-22 16:58:28 -05:00
Matheus Lima 2af381cf00 Fixing skills settings and skills manifest uploading 2019-04-16 18:11:14 -03:00
Chris Veilleux 74a7a786f3 fixed sql logging to make it readable 2019-04-04 01:45:42 -05:00
Chris Veilleux acb24c95ca bug fixes for connecting to a DigitalOcean hosted database 2019-04-02 12:09:15 -05:00
Matheus Lima e23d9ab840 Created endpoint to upload skills manifest 2019-03-27 11:23:59 -03:00
Chris Veilleux 91a77c5720 added sslmode to connection config to support DigitalOcean database hosting 2019-03-04 00:44:53 -06:00
Chris Veilleux 86883f31aa added non-pool connection to API 2019-02-25 01:48:35 -06:00
Chris Veilleux 7936bed82f added ability to decorate functions that return values 2019-02-12 10:39:05 -06:00
Chris Veilleux 71497b6549 changed update and delete methods to return the number of affected rows 2019-02-12 10:38:16 -06:00
Chris Veilleux 75d576f84d define a decorator for executing all sql within a class method in a transaction. commits will occur on success, rollbacks on failure. 2019-02-08 16:12:12 -06:00
Chris Veilleux c698bb9e05 added docstrings 2019-02-07 12:19:25 -06:00
Chris Veilleux 5f7974520f changed to allow for sql to be changed before passing to db utility functions 2019-02-06 22:45:42 -06:00
Chris Veilleux b9d4a5247e added ability to execute an "insert returning" SQL statement, which is useful to return values containing a default (like row IDs) 2019-02-06 13:40:15 -06:00
Chris Veilleux 440bdaabc6 provided ability to specify value of database connection's autocommit attribute 2019-02-05 12:28:49 -06:00
Chris Veilleux 4fbe6e1c6d removed print statement 2019-02-02 00:44:37 -06:00
Chris Veilleux a7e091b7fe enhanced and refactored to add crud abilities 2019-02-01 00:17:04 -06:00
Chris Veilleux 35a9dcba1b enhanced and refactored to add crud abilities 2019-02-01 00:16:53 -06:00
Chris Veilleux b64949173e down-merge from tartararus-overhaul 2019-01-31 11:25:07 -06:00
Chris Veilleux c0ed35a9f6 added some comments to clarify the different connection methods. 2019-01-31 11:13:44 -06:00
Chris Veilleux 48e3509277 add package api to __init__.py 2019-01-30 22:24:14 -06:00
Chris Veilleux 01f17d03de fixed a couple of minor bugs encountered in testing 2019-01-30 20:32:20 -06:00
Chris Veilleux cd3b67b127 initial attempt at implementing database connection pooling. side effect of changes was converting selene.util.db to a package to split out the different database functions in to their own modules 2019-01-30 18:57:31 -06:00