mirror of
https://github.com/XAMPPRocky/tokei.git
synced 2026-10-12 02:10:16 +00:00
* add nuget configuration support * fix test file * add bazel language * fix output format * add languages to readme * fix serialize * add edgeql * edit readme * add test file * fix edgedb
29 lines
520 B
Plaintext
29 lines
520 B
Plaintext
# 28 lines 21 code 3 comments 4 blanks
|
|
|
|
select User {
|
|
name,
|
|
friends: {
|
|
name
|
|
},
|
|
has_i := .friends.name ilike '%i%',
|
|
has_o := .friends.name ilike '%o%',
|
|
} filter .has_i or .has_o;
|
|
|
|
select <User>{} ?? User {name};
|
|
|
|
# update the user with the name 'Alice Smith'
|
|
with module example
|
|
update User
|
|
filter .name = 'Alice Smith'
|
|
set {
|
|
name := 'Alice J. Smith'
|
|
};
|
|
|
|
# update all users whose name is 'Bob'
|
|
with module example
|
|
update User
|
|
filter .name like 'Bob%'
|
|
set {
|
|
name := User.name ++ '*'
|
|
};
|