{"id":16746909,"url":"https://github.com/sdesalas/websqldump","last_synced_at":"2025-03-21T22:31:44.453Z","repository":{"id":149453941,"uuid":"50185222","full_name":"sdesalas/websqldump","owner":"sdesalas","description":"An ultra-light JS library for exporting data out of WebSQL","archived":false,"fork":false,"pushed_at":"2019-11-02T18:38:40.000Z","size":913,"stargazers_count":38,"open_issues_count":3,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T05:43:57.377Z","etag":null,"topics":["dump","websql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/sdesalas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MIT","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}},"created_at":"2016-01-22T14:12:06.000Z","updated_at":"2024-05-17T16:44:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"830cc9af-b691-463e-93b4-3113dffc75bf","html_url":"https://github.com/sdesalas/websqldump","commit_stats":{"total_commits":43,"total_committers":5,"mean_commits":8.6,"dds":0.4651162790697675,"last_synced_commit":"fda2793f69bc113e69aa2d3e61ac4185a8ddb411"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdesalas%2Fwebsqldump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdesalas%2Fwebsqldump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdesalas%2Fwebsqldump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdesalas%2Fwebsqldump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdesalas","download_url":"https://codeload.github.com/sdesalas/websqldump/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880287,"owners_count":20525506,"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":["dump","websql"],"created_at":"2024-10-13T02:08:38.492Z","updated_at":"2025-03-21T22:31:44.442Z","avatar_url":"https://github.com/sdesalas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![WebSQLDump Logo](https://raw.githubusercontent.com/sdesalas/websqldump/master/img/logo.whitebg.420px.png)\n\nAn ultra-light JS library for exporting data out of WebSQL\n\n\n## Usage\n\n```\n// Export whole db to console\nwebsqldump.export({\n  database: 'NorthwindLite'\n});\n```\n\n```\n// Export database data and POST to remote server\nwebsqldump.export({\n  database: 'NorthwindLite',\n  dataonly: true,\n  linebreaks: true,\n  success: function(sql) {\n    $.ajax({type: 'POST', url: 'http://myserver.com/sync', data: {clientId: '4EAB0319', localdb: sql});\n  }\n});\n```\n\n```\n// Export single table (schema only) to alert window, ignore errors\nwebsqldump.export({\n  database: 'NorthwindLite',\n  table: 'Orders',\n  schemaonly: true,\n  linebreaks: true,\n  success: function(sql) {\n    alert(sql); \n  },\n  error: function(msg) {\n    // do nothing\n  }\n});\n```\n\n### Export options\n\n- **database**: Required. The name of the database to export\n- **table**: The table to export, if undefined then all tables are exported (defaults to undefined)\n- **version**: The version of the web database (defaults to '1.0')\n- **dbsize**: The size of the database in bytes (defaults to 5 * 1024 * 1024 - ie 5MB)\n- **linebreaks**: Set to true to add line-breaks (defaults to false)\n- **schemaonly**: Set to true to get the schema only (defaults to false)\n- **dataonly**: Set to true to get the data only (defaults to false)\n- **success**: Callback with 1 parameter (sql output). If not available will output to console.\n- **error**: Callback with 1 parameter (err message). If not available on error will throw an exception.\n\n### Dependencies\n\nNo JavaScript library dependencies. Requires browser with HTML5 WebSql support (such as WebKit browsers like chrome and safari) or equivalent `openDatabase` polyfill. \n\n### Demo\n\nThe following page contains a test harness:\n\n[http://sdesalas.github.io/websqldump](http://sdesalas.github.io/websqldump)\n\nYou will need to create some tables and enter data in order for the demo to become meaningful.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdesalas%2Fwebsqldump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdesalas%2Fwebsqldump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdesalas%2Fwebsqldump/lists"}