|
|
| version 1.1, 2017/12/06 01:51:25 | version 1.4, 2017/12/08 00:55:21 |
|---|---|
| Line 1 | Line 1 |
| @main[] | @main[] |
| $SQL[ | |
| $.drivers[^table::create{protocol driver client | |
| sqlite ../../sql/sqlite/.libs/libparser3sqlite.so libsqlite3.so | |
| }] | |
| ] | |
| ^connect[sqlite://:memory:]{ | ^connect[sqlite://:memory:]{ |
| 1. 2 + 2 = ^string:sql{select 2+2} | 1. 2 + 2 = ^string:sql{select 2+2} |
| Line 48 | Line 55 |
| 5.2. ^t[select * from pets; $.limit(1) $.offset(1) ] | 5.2. ^t[select * from pets; $.limit(1) $.offset(1) ] |
| 5.3 ^try-catch{ ^t[select * from pets; $.bind[ $.name[value] ] ] } | |
| 5.4 ^try-catch{ ^t[select * from pets; $.no-such-option[] ] } | |
| 6. file | 6. file |
| Line 67 | Line 78 |
| 6.8 $f[^file::create["'test'"]] ^f.sql-string[] | 6.8 $f[^file::create["'test'"]] ^f.sql-string[] |
| 7. string | |
| 7.1 ^try-catch{ ^s[select * from pets; $.limit(1) $.offset(1) ] } | |
| 7.2 ^try-catch{ ^s[select pet from pets] } | |
| 7.3 ^try-catch{ ^s[select 2+2; $.bind[ $.name[$value] ] ] } | |
| 7.4 ^try-catch{ ^s[select 2+2; $.no-such-option[] ] } | |
| 7.5 ^try-catch{ ^s[select pet from pets; $.limit(0) ] } | |
| 7.6 ^s[select pet from pets; $.limit(0) $.default{default} ] | |
| } | } |
| Line 81 | Line 100 |
| @f[query;options] | @f[query;options] |
| $f[^file::sql{$query}[$options]] | $f[^file::sql{$query}[$options]] |
| ^json:string[$f; $.indent(1) $.file[text] ] | ^json:string[$f; $.indent(1) $.file[text] ] |
| @s[query;options] | |
| $s[^string:sql{$query}[$options]] | |
| "$s" |