<commit_before>-- :name create-image-collection :<! :1
insert into image_collection (id, "user", name)
values (:id, :user, :name)
returning *;

-- :name update-image-collection :<! :1
update image_collection
   set name = :name
       version = :version
 where id = :id
   and "user" = :user
returning *;

-- :name get-image-collections :? :*
select * from image_collection
 where "user" = :user
order by created_at desc;

-- :name delete-image-collection :! :n
update image_collection
   set deleted = true,
       deleted_at = clock_timestamp()
 where id = :id and "user" = :user;<commit_msg>Fix table name on images sql file.<commit_after>-- :name create-image-collection :<! :1
insert into image_collections (id, "user", name)
values (:id, :user, :name)
returning *;

-- :name update-image-collection :<! :1
update image_collections
   set name = :name
       version = :version
 where id = :id
   and "user" = :user
returning *;

-- :name get-image-collections :? :*
select * from image_collections
 where "user" = :user
order by created_at desc;

-- :name delete-image-collection :! :n
update image_collections
   set deleted = true,
       deleted_at = clock_timestamp()
 where id = :id and "user" = :user;
{'fraction_non_alphanumeric': 0.13767518549051938, 'fraction_numerical': 0.0032976092333058533, 'mean_word_length': 3.7421875, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '323424', 'n_tokens_mistral': 397, 'n_tokens_neox': 391, 'n_words': 125}