Mojo-Pg:Mojo-Pg 的只读发布历史

时间:2021-07-02 10:38:42
【文件属性】:
文件名称:Mojo-Pg:Mojo-Pg 的只读发布历史
文件大小:26KB
文件格式:ZIP
更新时间:2021-07-02 10:38:42
Perl 魔力::Pg 一个小包装器,它使与实时 Web 框架一起使用变得非常有趣。 use Mojolicious::Lite; use Mojo::Pg; use 5.20.0; use experimental ' signatures ' ; helper pg => sub { state $pg = Mojo::Pg -> new( ' postgresql://postgres@/test ' ) }; # Use migrations to create a table during startup app -> pg -> migrations -> from_data -> migrate; get ' / ' => sub ( $c ) { my $db = $c -> pg -> db; my $ip = $c -> tx -> remote_address;
【文件预览】:
Mojo-Pg-master
----t()
--------database.t(10KB)
--------results.t(2KB)
--------migrations.t(4KB)
--------migrations()
--------pg_lite_app.t(2KB)
--------pod.t(255B)
--------pod_coverage.t(278B)
----Makefile.PL(818B)
----META.yml(789B)
----lib()
--------Mojo()
----Changes(2KB)
----MANIFEST.SKIP(77B)
----CONTRIBUTING.md(177B)
----LICENSE(9KB)
----README.md(1KB)
----META.json(1KB)
----MANIFEST.bak(316B)
----MANIFEST(497B)

网友评论