Permalink
Browse files

(8) - created "full_name" virtual column

  • Loading branch information...
vanstyn committed Sep 12, 2013
1 parent bc1ec9d commit e49bd2a09a84a41e847d7d12fda90461dd498a2e
Showing with 16 additions and 0 deletions.
  1. BIN chinook.db
  2. +6 −0 cmd_history.sh
  3. +10 −0 lib/RA/ChinookDemo.pm
BIN +0 Bytes (100%) chinook.db
Binary file not shown.
@@ -223,3 +223,9 @@ script/ra_chinookdemo_server.pl
# Set custom CRUD options
vim lib/RA/ChinookDemo.pm
Commit '(7) - configured various CRUD options'
# Start the test server:
script/ra_chinookdemo_server.pl
#
# Setup a virtual column
vim lib/RA/ChinookDemo.pm
Commit '(8) - created "full_name" virtual column'
@@ -138,6 +138,16 @@ __PACKAGE__->config(
},
},
}, # (TableSpecs)
virtual_columns => {
Employee => {
full_name => {
data_type => "varchar",
is_nullable => 0,
size => 255,
sql => 'SELECT self.firstname || " " || self.lastname'
},
},
}, # (virtual_columns)
}, # (DB)
}, # (configs)
}, # ('Plugin::RapidApp::RapidDbic')

0 comments on commit e49bd2a

Please sign in to comment.