{"id":39510271,"url":"https://github.com/georgebarwood/database","last_synced_at":"2026-01-18T06:01:32.952Z","repository":{"id":206458151,"uuid":"271096017","full_name":"georgebarwood/Database","owner":"georgebarwood","description":"SQL database implemented in C#","archived":false,"fork":false,"pushed_at":"2021-12-15T14:02:15.000Z","size":568,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-11-10T05:36:29.785Z","etag":null,"topics":["csharp","database","sql"],"latest_commit_sha":null,"homepage":null,"language":"C#","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/georgebarwood.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,"governance":null}},"created_at":"2020-06-09T19:52:02.000Z","updated_at":"2023-11-10T05:36:51.687Z","dependencies_parsed_at":"2023-11-10T05:36:51.658Z","dependency_job_id":"c6bea7e3-a72f-48c0-817a-cf6db0bb129f","html_url":"https://github.com/georgebarwood/Database","commit_stats":null,"previous_names":["georgebarwood/database"],"tags_count":12,"template":null,"template_full_name":null,"purl":"pkg:github/georgebarwood/Database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgebarwood%2FDatabase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgebarwood%2FDatabase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgebarwood%2FDatabase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgebarwood%2FDatabase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/georgebarwood","download_url":"https://codeload.github.com/georgebarwood/Database/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgebarwood%2FDatabase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28531991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["csharp","database","sql"],"created_at":"2026-01-18T06:01:32.339Z","updated_at":"2026-01-18T06:01:32.924Z","avatar_url":"https://github.com/georgebarwood.png","language":"C#","readme":"# Database\nSQL database implemented in C#\n\nGuide to implementation source files:\n\nPublic.cs = public interface.\n\nWebServer.cs = main program, http web server ( example client ).\n\nInit.cs = SQL initialisation script.\n\nCompile.bat is file to compile source ( will need editing depending on version of .NET you have installed ).\n\nSQL-independent ( namespace DBNS )\n================================\n\nDatabase.cs = implements Database.\n\nLog.cs = log file to ensure atomic updates.\n\nStream.cs = fully buffered stream for Rollback/Commit.\n\nTable.cs = implementation of TABLE.\n\nIndexFile.cs, IndexPage.cs = implementation of INDEX.\n\nUtil.cs = various utility classes.\n\nSQL-specific ( namespace SQLNS )\n================================\n\nSqlExec.cs = parsing and execution of SQL statements.\n\nBlock.cs = list of statements for execution.\n\nExp.cs, ExpStd.cs, ExpConv.cs = scalar expressions.\n\nTableExp.cs = table-valued expressions.\n\nGroup.cs = implementation of GROUP BY.\n\nSort.cs = implementation of ORDER BY.\n\nIdSet.cs = optimisation of WHERE.\n\nConfiguration\n=============\n\nThe database files are stored in C:\\Databasefiles\\Test\\ this directory needs to be created.\nSee webserver.cs to change the location. Also, permission to listen needs to be granted, e.g.\n\nnetsh http add urlacl url=http://+:8080/ user=GEORGE-DELL\\pc\n\nAgain, see webserver.cs to change the http setup. If localhost is used, no permission is needed.\n\nImplementation details\n======================\n\nDatabase tables are kept in files with a fixed record size. This is possible because variable length values ( string and binary ) are encoded and stored seperately. The encoding is currently simply the offset in the system string or binary file.\n\nThe other type of file is an index file. Index files are B-Trees where each page has a fixed maximum size ( 4 kb at the time of writing ), when a page overflows it is split, and the new page is recorded in a parent page. See indexpage.cs for the details.\n\nManual\n======\nWhen the webserver runs, a link to a manual included with the program is displayed. Alternatively see https://georgebarwood.github.io/ for a copy of the manual.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgebarwood%2Fdatabase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorgebarwood%2Fdatabase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgebarwood%2Fdatabase/lists"}