From b8a18fbb9c1f42d038c7642cc73506e3489959ad Mon Sep 17 00:00:00 2001 From: smeghead Date: Thu, 23 May 2024 22:43:35 +0900 Subject: [PATCH] chore: change package name and namespace name changed to `phel` from `smeghead`. --- README.md | 12 ++++++------ composer.json | 4 ++-- src/pdo.phel | 4 ++-- src/statement.phel | 2 +- tests/feature/pdo.phel | 6 +++--- tests/feature/statement.phel | 6 +++--- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index be9adfd..49405c0 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,10 @@ 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 @@ -28,10 +28,10 @@ composer require smeghead/phel-pdo 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)) diff --git a/composer.json b/composer.json index 607c3a8..b7b969f 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "smeghead/phel-pdo", + "name": "phel-lang/phel-pdo", "description": "phel-lang pdo wrapper library.", "type": "library", "keywords": [ @@ -13,7 +13,7 @@ "license": "MIT", "autoload": { "psr-4": { - "Smeghead\\PhelPdo\\": "src/" + "Phel\\PhelPdo\\": "src/" } }, "authors": [ diff --git a/src/pdo.phel b/src/pdo.phel index 12af111..81952f2 100644 --- a/src/pdo.phel +++ b/src/pdo.phel @@ -1,5 +1,5 @@ -(ns smeghead\pdo - (:require smeghead\pdo\statement)) +(ns phel\pdo + (:require phel\pdo\statement)) (defstruct connection [pdo]) diff --git a/src/statement.phel b/src/statement.phel index 68533f4..1345e95 100644 --- a/src/statement.phel +++ b/src/statement.phel @@ -1,4 +1,4 @@ -(ns smeghead\pdo\statement) +(ns phel\pdo\statement) (defstruct statement [stmt]) diff --git a/tests/feature/pdo.phel b/tests/feature/pdo.phel index 1856176..65d8537 100644 --- a/tests/feature/pdo.phel +++ b/tests/feature/pdo.phel @@ -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:")] diff --git a/tests/feature/statement.phel b/tests/feature/statement.phel index 0c6361d..0b0b0dc 100644 --- a/tests/feature/statement.phel +++ b/tests/feature/statement.phel @@ -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:")]