{"id":26352004,"url":"https://github.com/denq/sqldom","last_synced_at":"2025-03-16T10:36:11.030Z","repository":{"id":33845101,"uuid":"37548202","full_name":"DenQ/SqlDom","owner":"DenQ","description":null,"archived":false,"fork":false,"pushed_at":"2015-07-09T16:24:55.000Z","size":616,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-15T13:48:05.478Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DenQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-16T18:25:33.000Z","updated_at":"2023-08-15T13:48:05.479Z","dependencies_parsed_at":"2022-08-18T00:35:31.952Z","dependency_job_id":null,"html_url":"https://github.com/DenQ/SqlDom","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenQ%2FSqlDom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenQ%2FSqlDom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenQ%2FSqlDom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenQ%2FSqlDom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DenQ","download_url":"https://codeload.github.com/DenQ/SqlDom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858929,"owners_count":20359259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-16T10:36:09.875Z","updated_at":"2025-03-16T10:36:11.015Z","avatar_url":"https://github.com/DenQ.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SqlDom\n\nКонцепция\n\nПример первый:\n\n```\ninsert div.myClass into :element\nwhere count(root\u003ediv) \u003c 10\n```\nНайти div.myClass и вставить в него :element\nесли прямых потомков у div.myClass меньше 10\n\n```\ninsert div.myClass into :element * 5\nwhere count(root\u003ediv) \u003c 10\n```\nТоже что и выше, только вставить сразу 5 элементов\n\n```\nselect \n    root:foo(), \n    root\u003ediv.childClass:bar() \nfrom div.myClass\nwhere count(root\u003ediv) \u003c 10\n```\nНайти div.myClass, и при условии, что прямых потомков будет менее 10,\nпроизвести над каждым найденным div.myClass действия описанные в foo(),\nа над каждым div.myClass\u003ediv.childClass - bar()\n\n```\nselect :action(*) from div.one as one\n    left join div.two as two on :r(one, two)\nwhere one.length is two.length\norder by [one, two: desc]\nlimit 10\noffset 5\n```\nНайти все div.one дать им на каждой итерации обхода, алиас - one,\nпопутно найти все div.two дав алиас two,\nсопоставить каждой one, two, в зависимоти от результата функции :r(one, two).\nВыполнить :action на каждой итерации, если длины one и two совпадают.\nИтератор должен двигаться для one вниз, а для two вверх.\nНачать обход с 5 позиции, и пройти до 15ой\n\nЗарезервированные слова:\n* root - алиас основной таблицы, если он не был указан явно","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenq%2Fsqldom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenq%2Fsqldom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenq%2Fsqldom/lists"}