Attention is currently required from: daniel, dexter, laforge.

fixeria has posted comments on this change by dexter. ( 
https://gerrit.osmocom.org/c/pysim/+/41508?usp=email )

Change subject: card_key_provider: add PostgreSQL support
......................................................................


Patch Set 5:

(3 comments)

File contrib/csv-to-pgsql.py:

https://gerrit.osmocom.org/c/pysim/+/41508/comment/2a3b526c_05475850?usp=email :
PS5, Line 38: table_name
Maybe do the `self.table = lower(table_name)` here to avoid doing this in each 
query?


https://gerrit.osmocom.org/c/pysim/+/41508/comment/f78ee9bd_3c7e041e?usp=email :
PS5, Line 132: %s;", (self.table.lower(),))
Why not using `SQL("...").format(...)` here like you do above?


File setup.py:

https://gerrit.osmocom.org/c/pysim/+/41508/comment/3e9c6337_a820596a?usp=email :
PS4, Line 37: psycopg2-binary
> What if we leave it out and mention it in the manual that it is needed

when someone wants to use the CardKeyProviderPgsql? Would that be an option?

This is indeed an option. Also, we do have `extras_require` below - this is 
where you can specify optional dependencies. You would also need to take care 
of importing the `psycopg2` not globally, but in a specific place (e.g. during 
the class instance instantiation).



--
To view, visit https://gerrit.osmocom.org/c/pysim/+/41508?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Icba625c02a60d7e1f519b506a46bda5ded0537d3
Gerrit-Change-Number: 41508
Gerrit-PatchSet: 5
Gerrit-Owner: dexter <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-CC: fixeria <[email protected]>
Gerrit-Attention: laforge <[email protected]>
Gerrit-Attention: daniel <[email protected]>
Gerrit-Attention: dexter <[email protected]>
Gerrit-Comment-Date: Thu, 18 Dec 2025 18:51:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <[email protected]>
Comment-In-Reply-To: dexter <[email protected]>

Reply via email to