{"id":18135386,"url":"https://github.com/grafana/xk6-sql-driver-sqlserver","last_synced_at":"2025-07-26T13:39:12.876Z","repository":{"id":258639522,"uuid":"874293189","full_name":"grafana/xk6-sql-driver-sqlserver","owner":"grafana","description":"xk6-sql driver extension for Microsoft SQL Server database support","archived":false,"fork":false,"pushed_at":"2025-07-07T08:56:50.000Z","size":61,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-19T11:44:05.949Z","etag":null,"topics":["xk6","xk6-sql-driver"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grafana.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-17T15:13:49.000Z","updated_at":"2025-07-08T13:18:19.000Z","dependencies_parsed_at":"2024-10-19T23:59:50.849Z","dependency_job_id":"b3b7395f-254f-466b-917a-62196398147c","html_url":"https://github.com/grafana/xk6-sql-driver-sqlserver","commit_stats":null,"previous_names":["grafana/xk6-sql-driver-sqlserver"],"tags_count":3,"template":false,"template_full_name":"grafana/xk6-sql-driver-ramsql","purl":"pkg:github/grafana/xk6-sql-driver-sqlserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafana%2Fxk6-sql-driver-sqlserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafana%2Fxk6-sql-driver-sqlserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafana%2Fxk6-sql-driver-sqlserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafana%2Fxk6-sql-driver-sqlserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grafana","download_url":"https://codeload.github.com/grafana/xk6-sql-driver-sqlserver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafana%2Fxk6-sql-driver-sqlserver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267175742,"owners_count":24047921,"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-07-26T02:00:08.937Z","response_time":62,"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":["xk6","xk6-sql-driver"],"created_at":"2024-11-01T14:07:02.176Z","updated_at":"2025-07-26T13:39:12.831Z","avatar_url":"https://github.com/grafana.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xk6-sql-driver-sqlserver\n\nDatabase driver extension for [xk6-sql](https://github.com/grafana/xk6-sql) k6 extension to support Microsoft SQL Server database.\n\n## Example\n\n```JavaScript file=examples/example.js\nimport sql from \"k6/x/sql\";\nimport driver from \"k6/x/sql/driver/sqlserver\";\n\n// The second argument is a MS SQL connection string, e.g.\n// Server=127.0.0.1;Database=myDB;User Id=myUser;Password=myPassword;\nconst db = sql.open(driver, \"\");\n\nexport function setup() {\n  db.exec(`\n    IF object_id('roster') is null\n      CREATE TABLE roster\n        (\n          [id] INT IDENTITY PRIMARY KEY,\n          [given_name] varchar(50) NOT NULL,\n          [family_name] varchar(50) NOT NULL);\n  `);\n}\n\nexport function teardown() {\n  db.close();\n}\n\nexport default function () {\n  let result = db.exec(`\n    INSERT INTO roster\n      ([given_name], [family_name])\n    VALUES\n    ('Peter', 'Pan'),\n      ('Wendy', 'Darling'),\n      ('Tinker', 'Bell'),\n      ('James', 'Hook');\n  `);\n  console.log(`${result.rowsAffected()} rows inserted`);\n\n  let rows = db.query(\"SELECT * FROM roster WHERE [key] = @p1;\", \"Peter\");\n  for (const row of rows) {\n    console.log(`${row.family_name}, ${row.given_name}`);\n  }\n}\n```\n\n## Usage\n\nCheck the [xk6-sql documentation](https://github.com/grafana/xk6-sql) on how to use this database driver.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrafana%2Fxk6-sql-driver-sqlserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrafana%2Fxk6-sql-driver-sqlserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrafana%2Fxk6-sql-driver-sqlserver/lists"}