Skip to content

Commit

Permalink
chore: change package name and namespace name
Browse files Browse the repository at this point in the history
changed to `phel` from `smeghead`.
  • Loading branch information
smeghead committed May 23, 2024
1 parent c43f4f5 commit b8a18fb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ Therefore, I created a wrapper library (phel-pdo) that can handle PDO just by ca

## Install

Install from composer. https://packagist.org/packages/smeghead/phel-pdo
Install from composer. https://packagist.org/packages/phel-lang/phel-pdo

```bash
composer require smeghead/phel-pdo
composer require phel/phel-pdo
```

## Usage

This is an example of connecting to a file database, creating a table, inserting records, and searching on repl.

```clojure
phel:1> (require smeghead\pdo)
smeghead\pdo
phel:2> (require smeghead\pdo\statement)
smeghead\pdo\statement
phel:1> (require phel\pdo)
phel\pdo
phel:2> (require phel\pdo\statement)
phel\pdo\statement
phel:3> (def connection-string "sqlite:database.db")
1
phel:4> (def conn (pdo/connect connection-string))
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "smeghead/phel-pdo",
"name": "phel-lang/phel-pdo",
"description": "phel-lang pdo wrapper library.",
"type": "library",
"keywords": [
Expand All @@ -13,7 +13,7 @@
"license": "MIT",
"autoload": {
"psr-4": {
"Smeghead\\PhelPdo\\": "src/"
"Phel\\PhelPdo\\": "src/"
}
},
"authors": [
Expand Down
4 changes: 2 additions & 2 deletions src/pdo.phel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns smeghead\pdo
(:require smeghead\pdo\statement))
(ns phel\pdo
(:require phel\pdo\statement))

(defstruct connection [pdo])

Expand Down
2 changes: 1 addition & 1 deletion src/statement.phel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns smeghead\pdo\statement)
(ns phel\pdo\statement)

(defstruct statement [stmt])

Expand Down
6 changes: 3 additions & 3 deletions tests/feature/pdo.phel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns smeghead\tests\pdo-initail
(ns phel\tests\pdo-initail
(:require phel\test :refer [deftest is])
(:require smeghead\pdo)
(:require smeghead\pdo\statement))
(:require phel\pdo)
(:require phel\pdo\statement))

(deftest test-initial
(let [conn (pdo/connect "sqlite::memory:")]
Expand Down
6 changes: 3 additions & 3 deletions tests/feature/statement.phel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns smeghead\tests\statement
(ns phel\tests\statement
(:require phel\test :refer [deftest is])
(:require smeghead\pdo)
(:require smeghead\pdo\statement))
(:require phel\pdo)
(:require phel\pdo\statement))

(deftest test-fetch-all
(let [conn (pdo/connect "sqlite::memory:")]
Expand Down

0 comments on commit b8a18fb

Please sign in to comment.