From f77b79b0da2dbcf3b7df2b875e5cd8552ba0554e Mon Sep 17 00:00:00 2001 From: Daniel Nussenbaum Date: Sat, 2 Nov 2024 23:37:53 +0200 Subject: [PATCH 1/2] Fixing test missing a col-type --- t/class.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/class.lisp b/t/class.lisp index 93f633e..51ad0fc 100644 --- a/t/class.lisp +++ b/t/class.lisp @@ -260,7 +260,7 @@ )") (is-table-class :mysql (defclass tweet () - ((user-name :references (user name))) + ((user-name :references (user name) :col-type (:or :null :text))) (:metaclass table-class)) "CREATE TABLE tweet ( user_name VARCHAR(64) NOT NULL From b139f2fcce1ea282c9be49f5705236f400be0446 Mon Sep 17 00:00:00 2001 From: daninus14 Date: Tue, 5 Nov 2024 01:07:52 +0200 Subject: [PATCH 2/2] Update README.markdown --- README.markdown | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.markdown b/README.markdown index 942345c..eef90b4 100644 --- a/README.markdown +++ b/README.markdown @@ -81,6 +81,15 @@ If you are using [clack](https://github.com/fukamachi/clack) as your webserver, *app*)) ``` +#### Connecting To `sqlite3` In Memory + +To connect to a `sqlite3` in memory database without having to save a file you can do: + +```common-lisp +(mito:connect-toplevel :sqlite3 + :database-name #P":memory:") +``` + ### deftable macro As Mito's dao table class is defined as a CLOS metaclass, a table class can be defined like this: