Select
Source:
src/AWS/SimpleDB/Select.ts
Runtime binding for sdb:Select.
Bind this operation to a Domain inside a function runtime.
Select addresses the domain inside the expression itself rather than via
a request field, so the client accepts either a literal expression or a
function of the domain’s resolved physical name.
Querying Items
Section titled “Querying Items”Select All Items
const select = yield* AWS.SimpleDB.Select(domain);
const result = yield* select({ SelectExpression: (domain) => `select * from \`${domain}\``, ConsistentRead: true,});// result.Items: [{ Name: "user#123", Attributes: [...] }, ...]Select with a Where Clause
const result = yield* select({ SelectExpression: (domain) => `select * from \`${domain}\` where plan = 'pro'`,});