sqlalchemy
Here are 1,800 public repositories matching this topic...
I've searched high and low trying to find a flask-sqlalchemy reflect example that actually works.
There seem to be others with the same issue (via stack overflow) who are frustrated. I'm sure you're tired of having to troubleshoot for users as well. :-(
I'd be happy to write up the doc if you could provide a working example (using an app factory and without).
Here's what I've come up with
Describe you question
I needed to enforce SQLite foreign keys so I copied the event code referenced in the documentation. However it failed tests (which use in-memory SQLite) because it was placed after db.create_all() which cost me some time to debug. I'm not sure if this would be considered a flub on my part or
-
Updated
Jun 30, 2020 - Python
-
Updated
Jun 23, 2020 - Python
Regarding python-gino/gino#511
Exactly what syntax is used to get the "connection" that will allow the documented code to function?
Changing the doc to the correct syntax without retrofitting the docs to make the code work is a bit rough.
Thanks for making such great code. I've got an instance running and am trying to document the ways that I can query the API.
So far, I've found:
- ?page=2
- ?[columnheader]=[value]
- ?[columnheader1]=[value1]&[columnheader3]=[value4] (returns results that have both value1 and value2)
- ?[columnheader1]=[value1]&[columnheader1]=[value2] (returns results that have value1 OR value2)
I'
Expand documentation
In particular:
- More examples of queries.
- Examples of using JSON field.
- Examples with joining tables.
- Getting PK of inserted rows.
- Properly document return types of the
databasesAPI.
I think the new argument in the init function in presto.py was meant to be principal_username not principle_username.
Might need to wait for a major version change as it's a breaking one. Or to add the principal_username argument, deprecate the old one and wait for the major version to remove it.
https://github.com/dropbox/PyHive/blob/bbf79418cfd2806fd9079893e70acc50a727a65d/pyhi
Hello
I was trying to assist someone using aiomysql for the first time. I myself use postgre and asyncpg, so I was relying on the documentation while helping them.
But the examples in the documentation use hard-coded queries or weird ways to escape, something a regular user would never do. Also the use of variables is too heavy. Examples should be clear, every argument of execute should be s
When uploading a logo in an Indico Category settings' page, one gets
"Bad Request" and is thrown back to the Indico home page, if the filetype is not one of:
accepted_file_types='image/jpeg,image/jpg,image/png,image/gif'
The "Bad Request" error message says: Required argument missing: logo.
It says nothing about the required file types. In the management area either...
This is no
It appears that the cursor timeout, when set to None, will always take the connection timeout as the maximum amount of time a query can run.
I believe this is a bug and should be changed.
https://github.com/aio-libs/aiopg/blob/master/aiopg/connection.py#L260
If this is not a bug and the intended behavior, it is very opinionated and should be documented.
A connection timeout is for esta
Discussing with Mexicoleaks it has been identified valuable to add a feature to make it possible for an admin to add instructions to be provided to users when downloading files.
This could be useful to always provide documentation to users part of the project; this documentation is expected to be used for training users about risks related to malware and metadata.
The idea is that any file d
Expected behavior: the doc keyword argument to sqlalchemy.Column should be converted to a description for all fields types.
Actual Behavior: For id Columns the doc argument is not converted to a description.
Steps to reproduce:
Given the Flask example [here](https://github.com/graphql-python/graphene-sqlalchemy/tree/25dd3d01b719ceaf5286da4a7daf897387a15fc6/examples/f
I made a start on some IPython magic for rendering eralchemy generated images in a Jupyter notebook: ipython_magic_eralchemy
It really needs factoring into eralchemy and perhaps ipython-sql somehow so that it could make use of a persistent SQL connection. ([ipython-sql magic](https://github.com/catherinedevlin/ipython-sql/b
-
Updated
Jul 2, 2020 - Python
While using alembic I came across two areas that I think could be improved:
- in the template
evn.pybefore setting the log config we should check if it's not already setup.
I think that we can do it by checking if the root logger has an handler configured.
This is useful if alembic is used programmatically, since it avoids resetting the program logging config.
I guess that an option
Firstly, thank you for the great extension!!
I've ran into an error that I'm sure others will have ran into, it may be worth updating the docs with a warning about it.
Our structure was as follows:
- Each model has it's own module
- Each model module also contains a Schema and Manager for example UserModel, UserSchema, UserManager all defined within /models/user.py
Some background - w
-
Updated
Jan 2, 2019 - Go
Marshmallow 2.18.0 raises ChangedInMarshmallow3Warning for nested schemas which is annoying when running tests and clogs the logs. Marshmallow should be updated to 2.18.1 where this issue was fixed.
https://marshmallow.readthedocs.io/en/3.0/changelog.html
marshmallow-code/marshmallow#1136
The actual tables are migrating with the same name. Thus for the following csv:
CUSTOMER,Customer,False
The files are turning up in MySQL (from Oracle) as 'CUSTOMER' but then it tries to add indices and FKs to Customer and falls down in a heap.
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/45471371-table-transform-only-ha
-
Updated
Feb 7, 2020 - Python
Marshmallow-sqlalchemy contains a Field "Result" Related but the documentation doesn't reference it at all. Document Related field, and give examples of it's use.
The pool should support the postgres EXPLAIN command. Pass in a sqlalchemy query, and get the explain results for it.
-
Updated
Jun 26, 2020 - CSS
This might be a very edgy edge case, but it goes as follows:
I'm using sqlalchemy_utils.i18n translation_hybrid in my application to provide translations for some of the fields in my models. Since I use them quite often, I created Mixins that define them. Since the name of the columns is not defined in the mixin directly, it has to be defined via the @declared_attr decorator. This (I suspec
-
Updated
Jul 2, 2020 - Python
Improve this page
Add a description, image, and links to the sqlalchemy topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the sqlalchemy topic, visit your repo's landing page and select "manage topics."

Is the README the only documentation available for this project? I find myself having to read the source to understand the interface and features that are available (e.g., context managers,
bulk_query, etc.).In the case of
bulk_query, the arguments are simply passed through to the underlying SQLAlchemy engine, with no explanation. I tracked it down in [SQLAlchemy's documentation](https:/