Named parameters enable you to specify an argument for a particular parameter by associating the argument with the parameter's name rather than with the parameter's position in the parameter list.
Questions tagged [named-parameters]
371 questions
1
vote
1 answer
Named parameters in database functions with SQLAlchemy
I have a function in my database (Postgres) that looks like this:
create function test_f(a text default '*', b text default '+') returns text as $$
select a || ' ' || b;
$$ language sql;
Postgres allows calling it with named…

lbolla
- 5,387
- 1
- 22
- 35
1
vote
1 answer
(php) calling wsdl method using soapclient with parameter in parameter name
Hi i'm using PHP's soapclient function to call a soap webservices (with wdsl).
I know how to pass parameters to a method, but the webservice i'm using is expecting parameters in the parameter name (not sure how to call this).
This is what the…

user1998112
- 11
- 2
1
vote
1 answer
In PowerShell V2, how to have named parameters in a method on a static class?
The following didn't parse
[x.y]::z -Param1 some_value
Is this even possible?

lingo_journey
- 653
- 1
- 8
- 22
1
vote
1 answer
Boost.Parameter: named template argument in combination with CRTP
Warning: longish introduction ahead needed to explain the problem. The Named Template Argument idiom first described in ch 16.1 of Vandevoorde and Josuttis can be conveniently written with the Boost.Parameter library
#include
…

TemplateRex
- 69,038
- 19
- 164
- 304
1
vote
0 answers
jdbc named parameter doesn't supports mysql default value
I am using namedParameter to insert in table. lets say user table where active flag is defaulted to 1 in mysql and marked as NOT NULL.
What I want is if I have value for active I will set it through java code but if not I would set it null and…

rachana
- 221
- 1
- 3
- 8
0
votes
0 answers
Named Parameters PDO UPDATE
I have JS code, which is called by the form:
//////////////// About Tab
$(document).ready(function(){
$("form#FanDetail").submit(function() {
// store the values from the form input box, then send via ajax below
var bio =…

CodeTalk
- 3,571
- 16
- 57
- 92
0
votes
2 answers
IronPython: Dynamically assign python named parameters from .net's Dictionary
i want to dynamically assign parameter values coming from a .net's Dictionary instance,
like this:
def Evaluator(IEvaluator):
def Execute(self, parameters):
a = parameters['a']
b = parameters['b']
c = parameters['c']
…

user1275011
- 1,552
- 1
- 16
- 36
0
votes
1 answer
Oracle Parameters: expects padded value for fixed char length
How do you efficiently use OracleCommand and Parameters to get data from an Oracle DB when you have a fixed length char colum and don`t know how big the column is?
Let`s assume we want to get an ID named IID which is a char (5 bytes) fixed.
…

Marc Wittmann
- 2,286
- 2
- 28
- 41
0
votes
0 answers
Writing memory for parameters in PyTorch `named_parameters`
class MyAlgo(torch.optim.Optimizer):
def __init__(self, params, model):
self.model = model
def step(self, closure = None):
for name, param in self.model.named_parameters():
param = "a Tensor in size of…

Hyo
- 109
- 3
0
votes
1 answer
Is there a way to nest simulated named parameters in Javascript?
Background
I am creating a function that handles dom manipulation such as creating an element, adding/setting some properties on the element, and appending it to a parent. I wanted to use named parameters, but from my research I found that this…

GeorgeCiesinski
- 191
- 1
- 3
- 11
0
votes
0 answers
Entity framework core, how to use named parameters with oracle procedure
I have an oracle package with some non mandatory parameters, iam using entity framework to call it but found some difficult in finding correct syntax
looking here i try in that way
string query = "";
var pSoloAttivi = new…

gt.guybrush
- 1,320
- 3
- 19
- 48
0
votes
2 answers
How can I use IN query with NamedParameterJdbcTemplate?
How can I use IN query with NamedParameterJdbcTemplate?
protected List getList(String sql, Map param) {
String sql = "select birth from member where gender=:gender and surname in (:surname)";
List list =…

JeonYongWook
- 73
- 8
0
votes
1 answer
Use a stored procedure to search for a string
How can I pass paramenter into a stored procedure and use it to search the database?
I am trying to search the database for a business name which has the search term within it.
The following SP can be used to return all results:
BEGIN
SELECT…

petworthnick
- 205
- 2
- 11
0
votes
0 answers
How to not expose the data structure in an object while accepting a collection of items with named parameters?
Most of the time, we can replace a fluent interface with named parameters.
class Cart {
fun withItems(vararg items: Item) = this
}
fun aCart(): Cart {
TODO()
}
class Item
fun anItem(): Item {
TODO()
}
fun main() {
…

ibrahim koz
- 537
- 4
- 15
0
votes
2 answers
Java: Problems while setting an array as parameter name in DB2 SQL query
DB2 Driver version: 4.19.66
DB2 installed version: DB2 v11.5.7.0
Java version: 1.8_121
I'm trying to set a parameter on a DB2 SQL query:
SELECT distinct object_id AS oid
FROM myschema.package p
INNER JOIN myschema.package_item pi ON p.machine_id =…

madtyn
- 1,469
- 27
- 55