Skip to content

Commit

Permalink
renamed to buku_merger
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrot-lc committed Oct 27, 2024
1 parent 0043cb1 commit 7cd316f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# sqlite_merger
# Buku Merger

[![Package Version](https://img.shields.io/hexpm/v/sqlite_merger)](https://hex.pm/packages/sqlite_merger)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/sqlite_merger/)
[![Package Version](https://img.shields.io/hexpm/v/buku_merger)](https://hex.pm/packages/buku_merger)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/buku_merger/)

```sh
gleam add sqlite_merger@1
gleam add buku_merger@1
```
```gleam
import sqlite_merger
import buku_merger
pub fn main() {
// TODO: An example of the project in use
}
```

Further documentation can be found at <https://hexdocs.pm/sqlite_merger>.
Further documentation can be found at <https://hexdocs.pm/buku_merger>.

## Development

Expand Down
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "sqlite_merger"
name = "buku_merger"
version = "1.0.0"

# Fill out these fields if you intend to generate HTML documentation or publish
Expand Down
3 changes: 2 additions & 1 deletion src/sqlite_merger.gleam → src/buku_merger.gleam
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import gleam/dynamic
import gleam/io
import gleam/string
import sqlight.{type Connection}

Expand All @@ -21,7 +22,7 @@ pub fn bookmarks_added(
"
SELECT t1.id FROM target as t1
WHERE t1.url NOT IN
( SELECT t2.url FROM source as t2);
( SELECT t2.url FROM source as t2 );
"
|> string.replace(each: "source", with: source)
|> string.replace(each: "target", with: target)
Expand Down
4 changes: 2 additions & 2 deletions test/sqlite_merger_test.gleam → test/buku_merger_test.gleam
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import buku_merger.{type Id}
import db_generator.{Bookmark}
import gleam/dynamic
import gleam/list
import gleam/order
import gleeunit
import gleeunit/should
import sqlight
import sqlite_merger.{type Id}

pub fn main() {
gleeunit.main()
Expand All @@ -27,7 +27,7 @@ pub fn added_bookmarks_test() {
let _ = db_generator.insert_bookmarks(bookmarks_1, "source", conn)
let _ = db_generator.insert_bookmarks(bookmarks_2, "target", conn)

sqlite_merger.bookmarks_added(conn, "source", "target")
buku_merger.bookmarks_added(conn, "source", "target")
|> list.sort(fn(a, b) {
case a < b {
True -> order.Lt
Expand Down

0 comments on commit 7cd316f

Please sign in to comment.