
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
github.com/risto-stevcev/purescript-sqlite
bower install purescript-sqlite
npm install sqlite3
instance loremIsForeign :: IsForeign Lorem where
read obj = do
n <- readProp "info" obj
pure $ Lorem { info: n }
instance showLorem :: Show Lorem where
show (Lorem a) = a.info
data Lorem = Lorem { info :: String }
main :: forall e. Eff (err :: EXCEPTION, console :: CONSOLE, sqlite :: SQLITE | e)
(Canceler ( sqlite :: SQLITE, console :: CONSOLE | e ))
main = launchAff $ do
db <- connect ":memory:" ReadWriteCreate
run db "CREATE TABLE IF NOT EXISTS lorem (info TEXT)"
run db ("INSERT INTO lorem VALUES (${value})" <-> [ "value" /\ "fooish!" ])
rows <- get db "SELECT * from lorem" :: SqlRows Lorem
close db
case rows of
Left err -> log (message err)
Right rows' -> log $ show rows'
This example logs [fooish!]
to the console.
For more examples, see the unit tests and examples folder.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.