sibyl 0.7.1

An OCI-based (synchronous or asynchronous) interface between Rust applications and Oracle databases
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Using Slices as Statement Arguments

Sibyl accepts a collection of values (as a slice or an array) as a single positional or a named argument. The primary target of this feature is to make passing arguments for IN-list parameters easier. However, as Sibyl simply unrolls a slice into consecutive arguments, this feature can also be "abused" 😉 to pass multiple consecutive arguments of the same type when it is convenient.

## Example

### Using Slice

```rust,noplayground
{{#include ../../examples/arg_as_slice.rs:17:38}}
```

### Using Array

```rust,noplayground
{{#include ../../examples/arg_as_array.rs:32:36}}
```