{"id":39175516,"url":"https://github.com/xbsoftware/wfs-db","last_synced_at":"2026-01-17T22:28:04.558Z","repository":{"id":57515895,"uuid":"244943759","full_name":"xbsoftware/wfs-db","owner":"xbsoftware","description":"File system with database as storage","archived":false,"fork":false,"pushed_at":"2020-07-07T09:56:24.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T02:12:07.627Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xbsoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-04T16:04:36.000Z","updated_at":"2023-04-17T19:11:20.000Z","dependencies_parsed_at":"2022-08-28T16:50:11.334Z","dependency_job_id":null,"html_url":"https://github.com/xbsoftware/wfs-db","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xbsoftware/wfs-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xbsoftware%2Fwfs-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xbsoftware%2Fwfs-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xbsoftware%2Fwfs-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xbsoftware%2Fwfs-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xbsoftware","download_url":"https://codeload.github.com/xbsoftware/wfs-db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xbsoftware%2Fwfs-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28520503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T22:11:28.393Z","status":"ssl_error","status_checked_at":"2026-01-17T22:11:27.841Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-17T22:28:04.483Z","updated_at":"2026-01-17T22:28:04.545Z","avatar_url":"https://github.com/xbsoftware.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Web File System - DataBase driver\n=========\n\nFile system abstraction with access management\nThis is the DataBase adapter for the [core interface](https://github.com/xbsoftware/wfs)\n\nAPI provides common file operations for file info stored in a database.\nAny operations outside for not owned files will be blocked.\nAlso, it possible to configure a custom policy for read/write operations.\n\nCan be used as backend for Webix File Manager https://webix.com/filemanager\n\n\n## API\n\n### Initialization\n\n```go\nimport (\n    \"github.com/xbsoftware/wfs\"\n    db \"github.com/xbsoftware/wfs-db\"\n\n    _ \"github.com/go-sql-driver/mysql\"\n    \"github.com/jmoiron/sqlx\"\n)\n\n\nconn, err := sqlx.Connect(\"mysql\", \"root:1@(localhost:3306)/files?parseTime=true\")\n\n// connection, temp folder, table name, root item, drive config\nfs, err := db.NewDBDrive(conn, \"/tmp\", \"entity\", 0, nil)\n```\n\n### DB Structure\n\n```sql\ncreate table files.entity\n(\n    id       int auto_increment     primary key,\n    name     varchar(255)           not null,\n    folder   int                    not null,\n    content  varchar(32) default '' not null,\n    type     tinyint                not null,\n    modified datetime               not null,\n    size     int         default 0  not null,\n    tree     int                    not null,\n    path     varchar(2048)          not null\n);\n\ncreate index entity_path_index\n    on files.entity (path);\n\n\n```\n\n### License \n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxbsoftware%2Fwfs-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxbsoftware%2Fwfs-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxbsoftware%2Fwfs-db/lists"}