mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-07-06 03:30:19 +09:00
(WIP) tried to use Strapping, but it had a bag (gave up)
This commit is contained in:
parent
61b6d4a39e
commit
cf55b5601c
4 changed files with 36 additions and 1 deletions
|
@ -7,6 +7,7 @@ using CSV
|
|||
using DataFrames
|
||||
using Dates
|
||||
|
||||
include("types.jl")
|
||||
include("parse_qaqc_master_log.jl")
|
||||
|
||||
include("create_table.jl")
|
||||
|
@ -60,6 +61,6 @@ function create_database_from_exported_csvs(
|
|||
db
|
||||
end
|
||||
|
||||
greet() = print("Hello World!")
|
||||
include("queries.jl")
|
||||
|
||||
end # module PSBoardDataBase
|
||||
|
|
9
src/queries.jl
Normal file
9
src/queries.jl
Normal file
|
@ -0,0 +1,9 @@
|
|||
function get_board_qaqc_summary(db::SQLite.DB, psboard_id::Int64)
|
||||
stmt = DBInterface.prepare(
|
||||
db,
|
||||
sql"SELECT * FROM qaqc_single_run_table WHERE psboard_id = (?)",
|
||||
)
|
||||
df = DBInterface.execute(stmt, (psboard_id,)) |> DataFrame
|
||||
|
||||
df
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue