|
|
| version 1.2, 2024/09/30 19:16:41 | version 1.4, 2024/12/12 20:34:23 |
|---|---|
| Line 37 | Line 37 |
| @basic-tests-sparse[] | @basic-tests-sparse[] |
| basic tests sparse | basic tests sparse |
| 3.1 ^a[select weigth as key, pet from pets; $.type[table] $.distinct(true) ] | 3.1 ^a[select weigth as id, pet from pets; $.type[table] $.distinct(true) ] |
| 3.1.1 ^try-catch{ ^a[select weigth as key, pet from pets; $.type[table] ] } | 3.1.1 ^try-catch{ ^a[select weigth as id, pet from pets; $.type[table] ] } |
| 3.2 ^a[select weigth as key, pet from pets; $.type[string] $.distinct(true) ] | 3.2 ^a[select weigth as id, pet from pets; $.type[string] $.distinct(true) ] |
| 3.2.1 ^try-catch{ ^a[select weigth as key, pet from pets; $.type[string] ] } | 3.2.1 ^try-catch{ ^a[select weigth as id, pet from pets; $.type[string] ] } |
| ^void:sql{delete from pets where pet='hamster'} | ^void:sql{delete from pets where pet='hamster'} |
| 3.3 ^a[select weigth, * from pets] | 3.3 ^a[select weigth, pets.* from pets] |
| 3.4 ^a[select weigth, * from pets; $.type[table]] | 3.4 ^a[select weigth, pets.* from pets; $.type[table]] |
| 3.5 ^a[select weigth, food from pets; $.type[string] ] | 3.5 ^a[select weigth, food from pets; $.type[string] ] |
| 3.6 ^try-catch{ ^a[select weigth, * from pets; $.type[string] ]} | 3.6 ^try-catch{ ^a[select weigth, pets.* from pets; $.type[string] ]} |
| 3.7. ^a[select weigth, * from pets; $.type[table] $.limit(1) $.offset(1) ] | 3.7. ^a[select weigth, pets.* from pets; $.type[table] $.limit(1) $.offset(1) ] |
| 3.8 ^try-catch{ ^a[select '1', pet from pets; $.type[string] ]} | 3.8 ^try-catch{ ^a[select '1', pet from pets; $.type[string] ]} |
| Line 69 | Line 69 |
| 1.1 ^a[delete from pets where pet=''] | 1.1 ^a[delete from pets where pet=''] |
| 1.2 ^a[select 0,* from pets^;select 1,* from pets; $.type[table] ] | 1.2 ^a[select 0,pets.* from pets^;select 1,pets.* from pets; $.type[table] ] |
| 1.3 ^a[select 0,* from pets^;select 0,* from pets; $.type[table] ] | 1.3 ^a[select 0,pets.* from pets^;select 0,pets.* from pets; $.type[table] ] |
| 1.4 ^a[select 0,* from pets^;select 0, 2+2; $.type[table] ] | 1.4 ^a[select 0,pets.* from pets^;select 0, 2+2; $.type[table] ] |
| 1.5 ^a[select 0,* from pets limit 2^;delete from pets where pet=''^;select 1,* from pets limit 1; $.type[table] ] | 1.5 ^a[select 0,pets.* from pets limit 2^;delete from pets where pet=''^;select 1,pets.* from pets limit 1; $.type[table] ] |
| 1.6 ^a[select 0,* from pets^;delete from pets where pet=''^;select 1,* from pets; $.type[table] $.limit(1) ] - minor bug: limit for last query only | 1.6 ^a[select 0,pets.* from pets^;delete from pets where pet=''^;select 1,pets.* from pets; $.type[table] $.limit(1) ] - minor bug: limit for last query only |
| 1.7 ^a[select weigth,food from pets^;select weigth+10,* from pets; $.type[table] ] | 1.7 ^a[select weigth,food from pets^;select weigth+10,pets.* from pets; $.type[table] ] |
| 1.8 ^a[select weigth,food from pets^;select weigth+10,* from pets; ] | 1.8 ^a[select weigth,food from pets^;select weigth+10,pets.* from pets; ] |
| 1.9 ^a[select 0,* from pets^;select 0, 2+2; $.type[hash] ] | 1.9 ^a[select 0,pets.* from pets^;select 0, 2+2; $.type[hash] ] |
| 1.10 ^a[select 0, 2+2^;select 0,* from pets; $.type[hash] ] | 1.10 ^a[select 0, 2+2^;select 0,pets.* from pets; $.type[hash] ] |
| 1.11 ^a[select 0,food from pets^;select 1,* from pets; $.type[table] ] | 1.11 ^a[select 0,food from pets^;select 1,pets.* from pets; $.type[table] ] |
| 1.12 ^a[select 0,food from pets^;select 0,* from pets; $.type[table] ] | 1.12 ^a[select 0,food from pets^;select 0,pets.* from pets; $.type[table] ] |
| @a[query;options] | @a[query;options] |
| $h[^array::sql{$query}[$options ^if($SPARSE){ $.sparse(true) } ^if($DISTINCT){ $.distinct(true) } ]] | $h[^array::sql{$query}[$options ^if($SPARSE){ $.sparse(true) } ^if($DISTINCT){ $.distinct(true) } ]] |