# Deprecated Functions

|                                                                                                   |                                                                     |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| [`str_lpad()`](https://docs.geldata.com/reference/stdlib/deprecated.md#function::std::str_lpad)   | Return the input string left-padded to the length n.                |
| [`str_rpad()`](https://docs.geldata.com/reference/stdlib/deprecated.md#function::std::str_rpad)   | Return the input string right-padded to the length n.               |
| [`str_ltrim()`](https://docs.geldata.com/reference/stdlib/deprecated.md#function::std::str_ltrim) | Return the input string with all leftmost trim characters removed.  |
| [`str_rtrim()`](https://docs.geldata.com/reference/stdlib/deprecated.md#function::std::str_rtrim) | Return the input string with all rightmost trim characters removed. |

## Function: str_lpad()

```eql
std::str_lpad(string: str, n: int64, fill: str = ' ') -> str
```

Return the input *string* left-padded to the length *n*.

> Warning: This function is deprecated. Use [`std::str_pad_start()`](https://docs.geldata.com/reference/stdlib/string.md#function::std::str_pad_start) instead.

If the *string* is longer than *n*, then it is truncated to the first *n* characters. Otherwise, the *string* is padded on the left up to the total length *n* using *fill* characters (space by default).

```edgeql-repl
db> select str_lpad('short', 10);
{'     short'}
db> select str_lpad('much too long', 10);
{'much too l'}
db> select str_lpad('short', 10, '.:');
{'.:.:.short'}
```


## Function: str_rpad()

```eql
std::str_rpad(string: str, n: int64, fill: str = ' ') -> str
```

Return the input *string* right-padded to the length *n*.

> Warning: This function is deprecated. Use [`std::str_pad_end()`](https://docs.geldata.com/reference/stdlib/string.md#function::std::str_pad_end) instead.

If the *string* is longer than *n*, then it is truncated to the first *n* characters. Otherwise, the *string* is padded on the right up to the total length *n* using *fill* characters (space by default).

```edgeql-repl
db> select str_rpad('short', 10);
{'short     '}
db> select str_rpad('much too long', 10);
{'much too l'}
db> select str_rpad('short', 10, '.:');
{'short.:.:.'}
```


## Function: str_ltrim()

```eql
std::str_ltrim(string: str, trim: str = ' ') -> str
```

Return the input string with all leftmost *trim* characters removed.

> Warning: This function is deprecated. Use [`std::str_trim_start()`](https://docs.geldata.com/reference/stdlib/string.md#function::std::str_trim_start) instead.

If the *trim* specifies more than one character they will be removed from the beginning of the *string* regardless of the order in which they appear.

```edgeql-repl
db> select str_ltrim('     data');
{'data'}
db> select str_ltrim('.....data', '.:');
{'data'}
db> select str_ltrim(':::::data', '.:');
{'data'}
db> select str_ltrim(':...:data', '.:');
{'data'}
db> select str_ltrim('.:.:.data', '.:');
{'data'}
```


## Function: str_rtrim()

```eql
std::str_rtrim(string: str, trim: str = ' ') -> str
```

Return the input string with all rightmost *trim* characters removed.

> Warning: This function is deprecated. Use [`std::str_trim_end()`](https://docs.geldata.com/reference/stdlib/string.md#function::std::str_trim_end) instead.

If the *trim* specifies more than one character they will be removed from the end of the *string* regardless of the order in which they appear.

```edgeql-repl
db> select str_rtrim('data     ');
{'data'}
db> select str_rtrim('data.....', '.:');
{'data'}
db> select str_rtrim('data:::::', '.:');
{'data'}
db> select str_rtrim('data:...:', '.:');
{'data'}
db> select str_rtrim('data.:.:.', '.:');
{'data'}
```


## Type: DatabaseConfig

```eql
DatabaseConfig
```

The branch-level configuration object type.

As of EdgeDB 5.0, this config object represents database *branch* and instance-level configuration.

**Use the identical** [`cfg::BranchConfig`](https://docs.geldata.com/reference/stdlib/cfg.md#type::cfg::BranchConfig) instead.


