mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-10 14:59:23 +09:00
new: create tables & add campaigns, runs, ps_boards, single run results
- currently, test automatically opens sqlitebrowser - ext package is not well checked
This commit is contained in:
commit
eba8d8f395
10 changed files with 1203 additions and 0 deletions
24
ext/PSBoardDataBaseInteractiveUtilsExt.jl
Normal file
24
ext/PSBoardDataBaseInteractiveUtilsExt.jl
Normal file
|
@ -0,0 +1,24 @@
|
|||
module PSBoardDataBaseInteractiveUtilsExt
|
||||
|
||||
export import_dataframe
|
||||
|
||||
using PSBoardDataBase
|
||||
using CSV
|
||||
using DataFrames
|
||||
using InteractiveUtils
|
||||
|
||||
"""
|
||||
import_dataframe() -> DataFrame
|
||||
|
||||
Import dataframe from clipboard.
|
||||
"""
|
||||
function import_dataframe()
|
||||
file = tempname()
|
||||
finalizer(file) do x
|
||||
@async rm(x)
|
||||
end
|
||||
|
||||
CSV.read(file, DataFrame)
|
||||
end
|
||||
|
||||
end # module
|
Loading…
Add table
Add a link
Reference in a new issue