From 49dd0e312edbb71381b27e3c1c3893b2764792cc Mon Sep 17 00:00:00 2001 From: Dirk Brand Date: Fri, 20 Dec 2024 14:20:29 +0200 Subject: [PATCH] Bump version --- cookbook/chunking/__init__.py | 0 cookbook/mysql-init/init.sql | 16 ++++++++++++++++ cookbook/readers/__init__.py | 0 cookbook/run_mysql.sh | 10 ++++++++++ pyproject.toml | 2 +- 5 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 cookbook/chunking/__init__.py create mode 100644 cookbook/mysql-init/init.sql create mode 100644 cookbook/readers/__init__.py create mode 100755 cookbook/run_mysql.sh diff --git a/cookbook/chunking/__init__.py b/cookbook/chunking/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/cookbook/mysql-init/init.sql b/cookbook/mysql-init/init.sql new file mode 100644 index 000000000..398c886a0 --- /dev/null +++ b/cookbook/mysql-init/init.sql @@ -0,0 +1,16 @@ +-- Create 'users' table +CREATE TABLE IF NOT EXISTS users ( + id INT AUTO_INCREMENT PRIMARY KEY, + username VARCHAR(50) NOT NULL UNIQUE, + email VARCHAR(100) NOT NULL UNIQUE, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP +); + +-- Create 'products' table +CREATE TABLE IF NOT EXISTS products ( + id INT AUTO_INCREMENT PRIMARY KEY, + name VARCHAR(100) NOT NULL, + description TEXT, + price DECIMAL(10,2) NOT NULL, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP +); diff --git a/cookbook/readers/__init__.py b/cookbook/readers/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/cookbook/run_mysql.sh b/cookbook/run_mysql.sh new file mode 100755 index 000000000..908347566 --- /dev/null +++ b/cookbook/run_mysql.sh @@ -0,0 +1,10 @@ +docker run -d \ + -e MYSQL_ROOT_PASSWORD=phi \ + -e MYSQL_DATABASE=phi \ + -e MYSQL_USER=phi \ + -e MYSQL_PASSWORD=phi \ + -p 3306:3306 \ + -v mysql_data:/var/lib/mysql \ + -v $(pwd)/cookbook/mysql-init:/docker-entrypoint-initdb.d \ + --name mysql \ + mysql:8.0 diff --git a/pyproject.toml b/pyproject.toml index 1ca8e856e..f59e309b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "phidata" -version = "2.7.4" +version = "2.7.5" description = "Build multi-modal Agents with memory, knowledge and tools." requires-python = ">=3.7" readme = "README.md"