{"id":15400583,"url":"https://github.com/armanbilge/porcupine","last_synced_at":"2025-04-13T15:35:29.860Z","repository":{"id":104648590,"uuid":"606650389","full_name":"armanbilge/porcupine","owner":"armanbilge","description":"Skunk-inspired library for SQLite on JVM, Node.js, and Native","archived":false,"fork":false,"pushed_at":"2025-03-25T07:46:18.000Z","size":160,"stargazers_count":30,"open_issues_count":15,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-27T06:34:15.133Z","etag":null,"topics":["cats-effect","scala","scala-native","scalajs","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/armanbilge.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-26T05:56:04.000Z","updated_at":"2024-10-16T23:08:39.000Z","dependencies_parsed_at":"2023-10-03T14:41:00.960Z","dependency_job_id":"6e72b39b-52f3-44d2-9209-ecbffeb76534","html_url":"https://github.com/armanbilge/porcupine","commit_stats":{"total_commits":124,"total_committers":2,"mean_commits":62.0,"dds":0.467741935483871,"last_synced_commit":"26a7443d820b793166ca81dea2a46fd4abfa0a85"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armanbilge%2Fporcupine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armanbilge%2Fporcupine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armanbilge%2Fporcupine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/armanbilge%2Fporcupine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/armanbilge","download_url":"https://codeload.github.com/armanbilge/porcupine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248737117,"owners_count":21153710,"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":["cats-effect","scala","scala-native","scalajs","sqlite"],"created_at":"2024-10-01T15:54:17.588Z","updated_at":"2025-04-13T15:35:29.838Z","avatar_url":"https://github.com/armanbilge.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# porcupine\n\n[Skunk]-inspired library for [SQLite] on JVM, Node.js, and Native!\n\n```scala\nlibraryDependencies += \"com.armanbilge\" %%% \"porcupine\" % \"\u003cversion\u003e\"\n```\n\n[Skunk]: https://github.com/tpolecat/skunk\n[SQLite]: https://www.sqlite.org\n\n## Installation\n\n### JVM\n\nDelegates to the [JDBC Driver].\n\n[JDBC Driver]: https://github.com/xerial/sqlite-jdbc\n\n### Node.js\n\nRequires the [better-sqlite3] npm package.\n\n```\nnpm i better-sqlite3\n```\n\n[better-sqlite3]: https://www.npmjs.com/package/better-sqlite3\n\n### Native\n\nYou must provide a native build of SQLite3. Here are three interesting ways to do this.\n\n1. Dynamically linking to an existing installation of sqlite3.\n```scala\nnativeConfig ~= { c =\u003e c.withLinkingOptions(c.linkingOptions :+ \"-lsqlite3\") }\n```\n\n2. Statically linking a pre-compiled SQLite into your binary. [sn-vcpkg] is a great way to do this. An ad-hoc configuration might look like this:\n```scala\nnativeConfig ~= { c =\u003e c.withLinkingOptions(c.linkingOptions :+ \"/usr/local/Cellar/sqlite/3.41.0/lib/libsqlite3.a\") }\n```\n\n3. Compiling SQLite as part of your project. You can download the SQLite [amalgation] as a single `sqlite3.c` file and place it in your `resources/scala-native` directory.\n\n[sn-vcpkg]: https://github.com/indoorvivants/sn-vcpkg\n[amalgation]: https://www.sqlite.org/amalgamation.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmanbilge%2Fporcupine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmanbilge%2Fporcupine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmanbilge%2Fporcupine/lists"}