You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-15Lines changed: 16 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -19,29 +19,30 @@ LOAD chsql;
19
19
```
20
20
21
21
If you previously installed the `chsql` extension, upgrade using the FORCE command
22
-
```
22
+
```sql
23
23
FORCE INSTALL chsql FROM community;
24
+
LOAD chsql;
24
25
```
25
26
27
+
## Supported Functions
26
28
27
-
## Usage Examples
28
-
```sql
29
-
-- Type conversion
30
-
SELECT toInt32(123456789) as int32;
31
-
SELECT toUInt64(1234567890123) as uint64;
32
-
33
-
-- Default values
34
-
SELECT toInt64OrZero('abc') as int64_or_zero;
35
-
SELECT toFloatOrNull('abc') as float_or_null;
29
+
The [list of supported functions](https://community-extensions.duckdb.org/extensions/chsql.html#added-functions) is available on the [dedicated extension page](https://community-extensions.duckdb.org/extensions/chsql.html).
36
30
37
-
-- Arithmetic
38
-
SELECT intDiv(10, 3) as int_div;
31
+
## Usage Examples
32
+
Once installed, macro functions provided by the extension can be used just like built-in functions.
39
33
40
-
-- String matching
41
-
SELECT match('hello world', '%world%') as match_result;
34
+
```sql
35
+
D INSTALL chsql FROM community;
36
+
D LOAD chsql;
37
+
D SELECT IPv4StringToNum('127.0.0.1'), IPv4NumToString(2130706433);
Find a [full list of supported functions](https://community-extensions.duckdb.org/extensions/chsql.html#added-functions) on the [extension page](https://community-extensions.duckdb.org/extensions/chsql.html).
0 commit comments