-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
Repo.connect(
adapter = Octo.Adapters.PostgreSQL,
host = "192.xxxxxx",
port = "5433",
dbname = "xxx",
user = "postgres",
password = "123456"
)
a = Repo.query(Repo.Raw("""SELECT * FROM task""")) # query execute
[ Info: SELECT * FROM task
ERROR: LoadError: MethodError: no method matching query(::LibPQ.Connection, ::String)
The applicable method may be too new: running in world age 32588, while current world is 32624.
Closest candidates are:
query(::Any, ::String) at ~/.julia/packages/Octo/i6fxM/src/Backends/PostgreSQL.jl:29 (method too new to be called from this world context.)
query(::Any, ::String, ::Vector) at ~/.julia/packages/Octo/i6fxM/src/Backends/PostgreSQL.jl:37 (method too new to be called from this world context.)
(db) pkg> st
Status `~/codes/julia_learn/db/Project.toml`
[5ae59095] Colors v0.12.8
[a93c6f00] DataFrames v1.3.4
[31c24e10] Distributions v0.25.66
[194296ae] LibPQ v1.13.0
[16905944] Octo v0.2.10
[0d432bfd] TableTransforms v1.3.0
julia> versioninfo()
Julia Version 1.8.0-rc1
Commit 6368fdc656 (2022-05-27 18:33 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: 96 × Intel(R) Xeon(R) Platinum 8255C CPU @ 2.50GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, cascadelake)
Threads: 1 on 96 virtual cores
Environment:
LD_LIBRARY_PATH = /usr/local/cuda-11.1/lib64
JULIA_PKG_SERVER = https://mirrors.bfsu.edu.cn/julia/static
Metadata
Metadata
Assignees
Labels
No labels