# To make a package conditionally export:
# A package can see whether another module was already imported,
# and conditionally act and e.g. import it and rebind/export some symbols:
(var- bla false)
(compwhen (not (some |(string/has-suffix? "dataframes.janet" $) (keys module/cache)))
(import declarative-dsls/dataframes :as "no" :export false)
(set bla true))
(compwhen bla
(def print-as-table no/print-as-table)
(def select no/select)
(def populate-df! no/populate-df!)
(def rows->dataframe no/rows->dataframe)
(def dataframe->rows no/dataframe->rows))
# From: https://codeberg.org/veqq/declarative-dsls/src/branch/master/src/declarative-dsls/logic.janet