[sqlalchemy] PG Array in declarative mapping

2023-02-19 Thread Samuel Killin
I'm struggling to define a SQLAlchemy column for a postgres string array using the new declarative mapping pattern in 2.0. I would expect something like this to work: *my_col: Mapped[list[str]] = mapped_column()* However, this throws with: *sqlalchemy.exc.ArgumentError: Could not locate

Re: [sqlalchemy] Docstring recommendations for SQLalchemy models?

2021-01-25 Thread Samuel Marks
Thanks for your insights, will take them aboard, and I'll update here when an alpha is ready SAMUEL MARKS Sydney Medical School | Westmead Institute for Medical Research | https://linkedin.com/in/samuelmarks Director | Offscale.io | Sydney Scientific Pty Ltd THE UNIVERSITY OF SYDNEY On Tue, 26

Re: [sqlalchemy] Docstring recommendations for SQLalchemy models?

2021-01-24 Thread Samuel Marks
of VARCHAR(20). With the exception of this however, everything else should be standard, and it should be easy for any developer to jump in and develop following best-practices in their chosen language(s) and framework(s). Any further tips here would be appreciated. Samuel Marks Charity <ht

Re: [sqlalchemy] Docstring recommendations for SQLalchemy models?

2021-01-24 Thread Samuel Marks
. The idea with the generated code is that it needs to be human maintainable, as well as machine maintainable. (all my code generators go both ways, so you can edit the generated [cli] code and generate [class] code from it, and edit the [class] code and generate [cli] code from it) Samuel Marks

Re: [sqlalchemy] Docstring recommendations for SQLalchemy models?

2021-01-24 Thread Samuel Marks
these SQLalchemy models, then I'll need a clean, consistent way of documenting each model. What is that way? Samuel Marks Charity <https://sydneyscientific.org> | consultancy <https://offscale.io> | open-source <https://github.com/offscale> | LinkedIn <https://linkedin.com/in/samuelma

Re: [sqlalchemy] Docstring recommendations for SQLalchemy models?

2021-01-23 Thread Samuel Marks
Would be great to have some insight here. If I'm going to start generating to/fro SQLalchemy models, then I need to get the column descriptions right Samuel Marks Charity <https://sydneyscientific.org> | consultancy <https://offscale.io> | open-source <https://github.com/offsc

[sqlalchemy] Docstring recommendations for SQLalchemy models?

2020-07-28 Thread Samuel Marks
I have created a little tool—at the AST level—to translate between docstrings, methods, classes, and argparse. https://github.com/SamuelMarks/doctrans Now looking at adding SQLalchemy support. Using the mock I've

Support for "redo"

2018-11-14 Thread samuel . grigolato
s.html I know that this would be a very minor helper, considering a simple bash script can do the trick. Nevertheless one may find it useful to find this in the docs and maybe even adapt their current development workflow? I'd like to know what your thoughts are on this. Regards, Samuel.

[sqlalchemy] Blob streaming

2010-07-01 Thread Samuel GARCIA
that, sorry if it is naive. 2 - Could you give me somes tips to deal with streaming with theses backend : MySQL, SQLite, postgree Thanks a lot. Samuel -- ~ Samuel Garcia Laboratoire de Neurosciences Sensorielles, Comportement, Cognition. CNRS - UMR5020

[sqlalchemy] Storing an object that has only private attributes

2010-06-21 Thread Samuel
). Is there a way to store such an object? I only need the object to be saved explicitly whenever session.save(foo) is called. -Samuel -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalch...@googlegroups.com

[sqlalchemy] Re: BLOB/TEXT column used in key specification without a key length

2008-05-22 Thread Samuel
Additional note: The same thing happens when using Index() explicitly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe

[sqlalchemy] BLOB/TEXT column used in key specification without a key length

2008-05-21 Thread Samuel
? -Samuel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

[sqlalchemy] Re: ANNOUNCE: Spiff Guard 1.9.0

2007-12-03 Thread Samuel
On Dec 3, 3:26 pm, voltron [EMAIL PROTECTED] wrote: import Guard, as in the tutorial does not work. Any ideas? I am not familiar with Python on Windows, but does your installation directory appear in your sys.path? -Samuel --~--~-~--~~~---~--~~ You received

[sqlalchemy] ANNOUNCE: Spiff Guard 1.9.0

2007-12-02 Thread Samuel
://groups.google.com/group/spiff-devel Bug tracker: http://code.google.com/p/spiff/issues/list Browse the source: http://spiff.googlecode.com/svn/trunk/libs/Guard/ If you have any questions, please do not hesitate to ask or file a bug. -Samuel

[sqlalchemy] Re: DateTime vs datetime.datetime

2007-12-01 Thread Samuel
On Nov 30, 11:57 pm, Michael Bayer [EMAIL PROTECTED] wrote: 1.2.2 over here produces regular datetime objects. Ah, well, thanks for the information. -Samuel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[sqlalchemy] DateTime vs datetime.datetime

2007-11-30 Thread Samuel
() TypeError: can't compare datetime.datetime to DateTime -Samuel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from

[sqlalchemy] Re: DateTime vs datetime.datetime

2007-11-30 Thread Samuel
= func.now()), mysql_engine='INNODB') [...] s = select([table.c.last_change]) result = s.execute() row = result.fetchone() print Row:, repr(row.last_change) This results in the following output: Row: DateTime object for '2007-11-30 22:54:54.00' at 405a79f8 -Samuel

[sqlalchemy] Getting a list of parameters from a select object

2007-11-29 Thread Samuel
? -Samuel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

[sqlalchemy] Re: Getting a list of parameters from a select object

2007-11-29 Thread Samuel
that request.compile().get_params() returns a dict that contains all the information I need. Thanks! -Samuel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalchemy