mirror of
https://github.com/XAMPPRocky/tokei
synced 2024-10-30 07:11:48 +00:00
21be04cba1
* 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
28 lines
520 B
Text
28 lines
520 B
Text
# 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 ++ '*'
|
|
};
|