Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Feb 23, 2024
1 parent c285eb7 commit 50e6e98
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions app/App/Cli/Run/Example.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import qualified Data.Text.Lazy.Encoding as LT
import qualified Data.Text.Lazy.IO as LT
import qualified System.IO as IO
import qualified System.IO.Unsafe as IO
import qualified App.Console as T

data ExampleRow = ExampleRow
{ theBigInt :: Int64
Expand Down Expand Up @@ -250,10 +251,36 @@ runExampleCmd cmd = do
AWS.runResourceT $ do
sql <- pure $ T.pack $ mconcat
[ "SELECT"
, " *"
, "FROM all_types"
, " the_bigint,"
, " the_bigserial,"
, " the_boolean,"
, " the_bytea,"
, " the_character,"
, " the_characters,"
, " the_varying_character,"
, " the_varying_characters,"
, " the_date,"
, " the_double,"
, " the_integer,"
, " the_json,"
, " the_jsonb,"
, " the_numeric,"
, " the_numerics,"
, " the_real,"
, " the_smallint,"
, " the_smallserial,"
, " the_serial,"
, " the_text,"
, " the_time,"
, " the_times,"
, " the_timestamp,"
, " the_timestamps,"
, " the_uuid"
, " FROM all_types"
]

liftIO $ T.putStrLn sql

req <- pure $ newExecuteStatement theResourceArn theSecretArn sql

res <- AWS.send envAws req
Expand Down

0 comments on commit 50e6e98

Please sign in to comment.