Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.12 KB

README.md

File metadata and controls

50 lines (31 loc) · 1.12 KB

Build Status Coverage Status

NAME

Nephia::Plugin::Otogiri - Quick hack database plugin for Nephia

SYNOPSIS

package MyApp;
use Nephia plugins => ['Otogiri'];
app {
    database_do <<'EOF';
CREATE TABLE member (
    ...
);
EOF
    db->insert(member => {...});
};

DESCRIPTION

Nephia::Plugin::Otogiri is a plugin for Nephia. It provides DSL for accessing to database.

DSL

database_do

database_do $sql;

Execute specified SQL.

db

my $db = db;

Returns an Otogiri object.

LICENSE

Copyright (C) papix.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Otogiri

AUTHOR

papix [email protected]