 
  		        defndaines
Web Development with Clojure, Third Edition: Which jdbc (14)
I’ve stumbled on running the guestbook tests on pages 14–15, and realize there’s a mismatch between the book and the default generated code.
Having recently run lein new luminus guestbook, the require statement by default in test/clj/guestbook/db/core_test.clj has the require as
   [next.jdbc :as jdbc]
This failed when I tried to run tests because of
Syntax error compiling at (guestbook/db/core_test.clj:21:3).
No such var: jdbc/with-db-transaction
Spotting that the text currently (B16) has the require as
   [clojure.java.jdbc :as jdbc]
I changed it, but this leads to failures
ERROR in (messages-test) (core_deftype.clj:583)
Uncaught exception, not in assertion.
expected: nil
  actual: java.lang.IllegalArgumentException: No implementation of method: :get-level of protocol: #'clojure.java.jdbc/Connectable found for class: com.zaxxer.hikari.HikariDataSource
I haven’t fiddled with it any more than that, but it does suggest that the latest luminus may have made changes to next.jdbc, causing some mismatches with the text.
I should note that in the REPL I am able to call save-message! and get-messages just fine.
Most Liked
 
		        defndaines
The solution which uses next.jdbc is:
(deftest messages-test
  (jdbc/with-transaction [t-conn *db* {:rollback-only true}]
    (is (= 1 (db/save-message!
	                    1
	                
	                
	            Popular Pragmatic Bookshelf topics
                         
                      
                       
          
                As per the title, thanks.
              
            
            
          
              New
 
          
                Title: Web Development with Clojure, Third Edition, pg 116 
Hi - I just started chapter 5 and I am stuck on page 116 while trying to star...
              
            
            
          
              New
 
          
                your book suggests to use Image.toByteData() to convert image to bytes, however I get the following error: "the getter ‘toByteData’ isn’t...
              
            
            
          
              New
 
          
                Title: Hands-On Rust (Chap 8 (Adding a Heads Up Display) 
It looks like 
    .with_simple_console_no_bg(SCREEN_WIDTH*2, SCREEN_HEIGHT*2...
              
            
            
          
              New
 
          
                Hi Travis! Thank you for the cool book! :slight_smile: 
I made a list of issues and thought I could post them chapter by chapter. I’m rev...
              
            
            
          
              New
 
          
                Hi, 
build fails on: 
bracket-lib = “~0.8.1” 
when running on Mac Mini M1 Rust version 1.5.0: 
Compiling winit v0.22.2 
error[E0308]: mi...
              
            
            
          
              New
 
          
                Hi! I know not the intentions behind this narrative when called, on page XI: 
mount() |> handle_event() |> render()
but the correc...
              
            
            
          
              New
 
          
                Hello! Thanks for the great book. 
I was attempting the Trie (chap 17) exercises and for number 4 the solution provided for the autocorre...
              
            
            
          
              New
 
          
                Hi, I’m working on the Chapter 8 of the book. 
After I add add the point_offset, I’m still able to see acne: 
  
In the image above, I re...
              
            
            
          
              New
 
          
                I just bought this book to learn about Android development, and I’m already running into a major issue in Ch. 1, p. 20:  “Update activity...
              
            
            
          
              New
Other popular topics
                         
                      
                       
          
                A thread that every forum needs! 
Simply post a link to a track on YouTube (or SoundCloud or Vimeo amongst others!) on a separate line an...
              
            
            
          
              New
 
          
                Do the test and post your score :nerd_face: 
:keyboard: 
If possible, please add info such as the keyboard you’re using, the layout (Qw...
              
            
            
              
          
              New
 
          
                Oh just spent so much time on this to discover now that RancherOS is in end of life but Rancher is refusing to mark the Github repo as su...
              
            
            
          
              New
 
          
                Learn different ways of writing concurrent code in Elixir and increase your application's performance, without sacrificing scalability or...
              
            
            
              
          
              New
 
          
                If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: 
bre...
              
            
            
          
              New
 
          
                Author Spotlight 
Dmitry Zinoviev 
@aqsaqal 
Today we’re putting our spotlight on Dmitry Zinoviev, author of Data Science Essentials in ...
              
            
            
          
              New
 
          
                Author Spotlight 
Mike Riley 
@mriley 
This month, we turn the spotlight on Mike Riley, author of Portable Python Projects. Mike’s book ...
              
            
            
          
              New
 
          
                Author Spotlight: 
VM Brasseur 
@vmbrasseur 
We have a treat for you today! We turn the spotlight onto Open Source as we sit down with V...
              
            
            
          
              New
 
          
                There appears to have been an update that has changed the terminology for what has previously been known as the Taskbar Overflow - this h...
              
            
            
          
              New
 
          
                Background
Lately I am in a quest to find a good quality TTS ai generation tool to run locally in order to create audio for some videos I...
              
            
            
          
              New
Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /ruby
- /wasm
- /erlang
- /phoenix
- /keyboards
- /python
- /rails
- /js
- /security
- /go
- /swift
- /vim
- /clojure
- /haskell
- /emacs
- /java
- /svelte
- /onivim
- /typescript
- /kotlin
- /crystal
- /c-plus-plus
- /tailwind
- /react
- /gleam
- /ocaml
- /elm
- /flutter
- /vscode
- /ash
- /opensuse
- /html
- /centos
- /php
- /zig
- /deepseek
- /scala
- /lisp
- /sublime-text
- /textmate
- /react-native
- /nixos
- /debian
- /agda
- /kubuntu
- /arch-linux
- /django
- /revery
- /ubuntu
- /deno
- /spring
- /manjaro
- /nodejs
- /diversity
- /lua
- /julia
- /c
- /slackware
 
    





