Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
10
Task/Introspection/DuckDB/introspection.duckdb
Normal file
10
Task/Introspection/DuckDB/introspection.duckdb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Return version() as a list of integers [major, minor, patch]
|
||||
create or replace function semver() as
|
||||
version().regexp_extract('v[0-9.]*')[2:].split('.')
|
||||
.list_transform(x->cast(x as INTEGER));
|
||||
|
||||
# semversion should be a list of integers [major, minor, patch]
|
||||
create or replace function errorIfBefore(semversion) as
|
||||
if (semver() <= semversion, error( version() || ' is too old'), null);
|
||||
|
||||
select errorIfBefore([1,1,5]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue