dbadmin 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +17 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +24 -0
- data/Rakefile +2 -0
- data/bin/dbadmin +5 -0
- data/dbadmin.gemspec +20 -0
- data/lib/dbadmin.rb +101 -0
- data/lib/public/css/bootstrap-responsive.css +1058 -0
- data/lib/public/css/bootstrap-responsive.min.css +9 -0
- data/lib/public/css/bootstrap.css +5774 -0
- data/lib/public/css/bootstrap.min.css +9 -0
- data/lib/public/img/glyphicons-halflings-white.png +0 -0
- data/lib/public/img/glyphicons-halflings.png +0 -0
- data/lib/public/js/bootstrap.js +2027 -0
- data/lib/public/js/bootstrap.min.js +6 -0
- data/lib/public/js/jquery-1.8.2.js +9440 -0
- data/lib/views/query.erb +51 -0
- data/lib/views/tables.erb +53 -0
- metadata +99 -0
data/lib/views/query.erb
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<title><%= @page_title %></title>
|
5
|
+
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<div class="container-fluid">
|
9
|
+
<div class="navbar">
|
10
|
+
<div class="navbar-inner">
|
11
|
+
<a class="brand" href="#">DBAdmin</a>
|
12
|
+
<ul class="nav">
|
13
|
+
<li><a href="/tables">Tables</a></li>
|
14
|
+
<li class="active"><a href="/query">Query</a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<div class="row-fluid">
|
19
|
+
<div class="span12">
|
20
|
+
<form action="/query" method="post">
|
21
|
+
<textarea name="sql" rows="7" class="span12"><%= @sql %></textarea>
|
22
|
+
|
23
|
+
<div class="form-actions" style="text-align: right">
|
24
|
+
<button type="submit" class="btn btn-primary">Execute</button>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<% if @columns && @rows %>
|
28
|
+
<table class="table table-striped table-bordered">
|
29
|
+
<tr>
|
30
|
+
<% for column in @columns %>
|
31
|
+
<th><%= column %></th>
|
32
|
+
<% end %>
|
33
|
+
</tr>
|
34
|
+
|
35
|
+
<% for row in @rows %>
|
36
|
+
<tr>
|
37
|
+
<% for column in @columns %>
|
38
|
+
<td><%= row[column] %></td>
|
39
|
+
<% end %>
|
40
|
+
</tr>
|
41
|
+
<% end %>
|
42
|
+
</table>
|
43
|
+
<% end %>
|
44
|
+
</form>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
<script src="/js/jquery-1.8.2.js"></script>
|
49
|
+
<script src="/js/bootstrap.min.js"></script>
|
50
|
+
</body>
|
51
|
+
</html>
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<title><%= @page_title %></title>
|
5
|
+
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<div class="container-fluid">
|
9
|
+
<div class="navbar">
|
10
|
+
<div class="navbar-inner">
|
11
|
+
<a class="brand" href="#">DBAdmin</a>
|
12
|
+
<ul class="nav">
|
13
|
+
<li class="active"><a href="/tables">Tables</a></li>
|
14
|
+
<li><a href="/query">Query</a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<div class="row-fluid">
|
19
|
+
<div class="span3">
|
20
|
+
<div class="well sidebar-nav">
|
21
|
+
<ul class="nav nav-list">
|
22
|
+
<li class="nav-header">Tables</li>
|
23
|
+
<% for table in @tables %>
|
24
|
+
<li<%= ' class="active"' if table == @table %>>
|
25
|
+
<a href="/tables/<%= table %>/content"><%= table %></a>
|
26
|
+
</li>
|
27
|
+
<% end %>
|
28
|
+
</ul>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
<div class="span9">
|
32
|
+
<table class="table table-striped table-bordered">
|
33
|
+
<tr>
|
34
|
+
<% for column in @columns %>
|
35
|
+
<th><%= column %></th>
|
36
|
+
<% end %>
|
37
|
+
</tr>
|
38
|
+
|
39
|
+
<% for row in @rows %>
|
40
|
+
<tr>
|
41
|
+
<% for column in @columns %>
|
42
|
+
<td><%= row[column] %></td>
|
43
|
+
<% end %>
|
44
|
+
</tr>
|
45
|
+
<% end %>
|
46
|
+
</table>
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
<script src="/js/jquery-1.8.2.js"></script>
|
51
|
+
<script src="/js/bootstrap.min.js"></script>
|
52
|
+
</body>
|
53
|
+
</html>
|
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dbadmin
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Paul Barry
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-10-05 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activesupport
|
16
|
+
requirement: &70224708796860 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70224708796860
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: sequel
|
27
|
+
requirement: &70224708796420 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70224708796420
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: sinatra
|
38
|
+
requirement: &70224708812380 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70224708812380
|
47
|
+
description: A web-based DB GUI for MySQL, Postgres, SQLite, etc.
|
48
|
+
email:
|
49
|
+
- mail@paulbarry.com
|
50
|
+
executables:
|
51
|
+
- dbadmin
|
52
|
+
extensions: []
|
53
|
+
extra_rdoc_files: []
|
54
|
+
files:
|
55
|
+
- .gitignore
|
56
|
+
- .rvmrc
|
57
|
+
- Gemfile
|
58
|
+
- LICENSE
|
59
|
+
- README.md
|
60
|
+
- Rakefile
|
61
|
+
- bin/dbadmin
|
62
|
+
- dbadmin.gemspec
|
63
|
+
- lib/dbadmin.rb
|
64
|
+
- lib/public/css/bootstrap-responsive.css
|
65
|
+
- lib/public/css/bootstrap-responsive.min.css
|
66
|
+
- lib/public/css/bootstrap.css
|
67
|
+
- lib/public/css/bootstrap.min.css
|
68
|
+
- lib/public/img/glyphicons-halflings-white.png
|
69
|
+
- lib/public/img/glyphicons-halflings.png
|
70
|
+
- lib/public/js/bootstrap.js
|
71
|
+
- lib/public/js/bootstrap.min.js
|
72
|
+
- lib/public/js/jquery-1.8.2.js
|
73
|
+
- lib/views/query.erb
|
74
|
+
- lib/views/tables.erb
|
75
|
+
homepage: http://github.com/pjb3/dbadmin
|
76
|
+
licenses: []
|
77
|
+
post_install_message:
|
78
|
+
rdoc_options: []
|
79
|
+
require_paths:
|
80
|
+
- lib
|
81
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
89
|
+
requirements:
|
90
|
+
- - ! '>='
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
requirements: []
|
94
|
+
rubyforge_project:
|
95
|
+
rubygems_version: 1.8.17
|
96
|
+
signing_key:
|
97
|
+
specification_version: 3
|
98
|
+
summary: A web-based DB GUI for MySQL, Postgres, SQLite, etc.
|
99
|
+
test_files: []
|