Skip to content

Commit

Permalink
copy functions to make more independent modules
Browse files Browse the repository at this point in the history
  • Loading branch information
turulomio committed Jul 19, 2023
1 parent 41e8e4d commit 524ad14
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 484 deletions.
10 changes: 9 additions & 1 deletion python/connection_pg3.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
## THIS IS FILE IS FROM https://github.com/turulomio/reusingcode IF YOU NEED TO UPDATE IT PLEASE MAKE A PULL REQUEST IN THAT PROJECT
## DO NOT UPDATE IT IN YOUR CODE IT WILL BE REPLACED USING FUNCTION IN README

from .casts import b2s
from datetime import datetime
from logging import debug
from psycopg import connect as psycopg_connect, Error, ClientCursor
from psycopg.rows import dict_row

## BEGIN OF COPIES
## To make independient modules I copy this from casts

def b2s(b, code='UTF-8'):
return b.decode(code)
## END OF COPIES



class Connection:
def __init__(self):
self.user=None
Expand Down
Loading

0 comments on commit 524ad14

Please sign in to comment.