{"id":31827798,"url":"https://github.com/doobcontrol/xydb","last_synced_at":"2026-02-28T19:01:41.296Z","repository":{"id":212800809,"uuid":"718616766","full_name":"doobcontrol/xyDb","owner":"doobcontrol","description":"Definition of general database operation interface and implementation of specific database operations for each database","archived":false,"fork":false,"pushed_at":"2025-04-17T15:47:37.000Z","size":586,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T03:39:03.033Z","etag":null,"topics":["database","mysql","postresql","sqlite","sqlserver"],"latest_commit_sha":null,"homepage":"","language":"C#","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/doobcontrol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-14T13:07:53.000Z","updated_at":"2025-04-21T17:47:59.000Z","dependencies_parsed_at":"2023-12-16T12:33:54.262Z","dependency_job_id":"ae7743c9-6b28-421e-8b1b-95fbfb89a080","html_url":"https://github.com/doobcontrol/xyDb","commit_stats":null,"previous_names":["doobcontrol/xydb"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/doobcontrol/xyDb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doobcontrol%2FxyDb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doobcontrol%2FxyDb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doobcontrol%2FxyDb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doobcontrol%2FxyDb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doobcontrol","download_url":"https://codeload.github.com/doobcontrol/xyDb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doobcontrol%2FxyDb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008463,"owners_count":26084460,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":["database","mysql","postresql","sqlite","sqlserver"],"created_at":"2025-10-11T19:18:45.542Z","updated_at":"2025-10-11T19:18:47.770Z","avatar_url":"https://github.com/doobcontrol.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xyDb\nDefinition of general database operation interface and implementation of specific database operations for each database  \n  \nCurrently includes: SQLite64, PostgreSQL, SqlServer, MySql    \n\n## Sample\nPlease read code details in project xyDbSample.  \n### Create DbService\nIDbAccess dbAccess = new SQLite64DbAccess();  \n//IDbAccess dbAccess = new PostgreSQLDbAccess();  \n//IDbAccess dbAccess = new SQLServerDbAccess();  \nstring ConnectionString = @\"Data Source=testDb;\";  \n//string ConnectionString = @\"Server=localhost;Database=testdb;User Id=testuser;Password=testPassword;\";  \n//string ConnectionString = @\"Server=localhost\\\\SQLEXPRESS;uid=testUser;pwd=testPassword;database=testDb;Packet Size=8192;Max Pool Size=1000;Connect Timeout=30;\";  \nDbService = new DbService(ConnectionString, dbAccess);  \nawait DbService.openAsync();  \n### New record and query\nmaxId++;  \nstring sql = \"INSERT INTO COMPANY(ID, NAME, AGE) \" + \"VALUES(\" + maxId + \", '', 0)\";  \nawait dbService.exeSqlAsync(sql);  \nsql = \"SELECT * From COMPANY WHERE ID=\" + maxId;  \nDataTable dt = await dbService.exeSqlForDataSetAsync(sql);  \nint i = dataGridView1.Rows.Add(dt.Rows[0].ItemArray);  \ndataGridView1.Rows[i].Tag = dt.Rows[0];  \n### Edit record\nstring colName = dataGridView1.Columns[e.ColumnIndex].Name;  \nstring cellValue = dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();  \nstring rowID =  dataGridView1.Rows[e.RowIndex].Cells[\"ID\"].Value.ToString();  \nstring sql = \"UPDATE COMPANY SET \" + colName + \"='\" + cellValue + \"' \"  + \" WHERE ID=\" + rowID;  \nawait dbService.exeSqlAsync(sql);  \n### Delete record\nint rowIndex = dataGridView1.SelectedRows[0].Index;  \nint rowID = Convert.ToInt32(dataGridView1.Rows[rowIndex].Cells[\"ID\"].Value);  \nstring sql = \"DELETE FROM COMPANY \" + \" WHERE ID=\" + rowID;  \nawait dbService.exeSqlAsync(sql);  \ndataGridView1.Rows.RemoveAt(rowIndex);  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoobcontrol%2Fxydb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoobcontrol%2Fxydb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoobcontrol%2Fxydb/lists"}