Skip to content

Added SQL Server style named parameter.#13

Merged
cpburnz merged 1 commit into
cpburnz:masterfrom
ryokash:sqlserver
Jan 25, 2025
Merged

Added SQL Server style named parameter.#13
cpburnz merged 1 commit into
cpburnz:masterfrom
ryokash:sqlserver

Conversation

@ryokash

@ryokash ryokash commented Jan 20, 2025

Copy link
Copy Markdown

Added SQL Server style (i.e. @param_name style) named parameter.

>>> from sqlparams import SQLParams
>>> formatter = SQLParams('named_sqlserver', 'qmark')
>>> formatter.format('select * from Test where id = @id', {'id': 10})
('select * from Test where id = ?', [10])

@cpburnz

cpburnz commented Jan 23, 2025

Copy link
Copy Markdown
Owner

Thanks, this is a useful addition. I'll review it this weekend.

@cpburnz cpburnz merged commit dc04ea4 into cpburnz:master Jan 25, 2025
@cpburnz

cpburnz commented Jan 25, 2025

Copy link
Copy Markdown
Owner

v6.2.0 has been released on PyPI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants