Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Lasso (programming language)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Inlines=== <syntaxhighlight lang="lasso"> // Find all records in a table inline( -database='db_name', -table='table_name', -findall ) => { // Iterate through and process each row rows => { // Output each row to the current web request content_body += '<a href="' + column('url') + '">' + column('title') + '</a>' } } </syntaxhighlight> Inlines are the basic Lasso tool for database actions. [http://www.lassosoft.com/lassoDocs/languageReference/obj/inline Database commands] can be issued as above, in Lasso's db-independent metalanguage, in which case the same search code works for MySQL, FileMaker Pro or for any other database backend with which Lasso can connect. If needed, a [[SQL]] statement can of course be embedded in the inline when using a database server that supports SQL: <syntaxhighlight lang="lasso"> // Execute SQL statement inline( -database='db_name', -sql = 'SELECT * FROM table_name' )... </syntaxhighlight> In the above example, the dashes (-) before commands denote optional parameters. These can be specified in any order and generated dynamically; the last of any duplicate parameters take precedence. The inline command supports a large range of parameters<ref>[http://www.lassosoft.com/lassoDocs/languageReference/obj/inline large range of parameters]</ref> allowing developers to interact with databases that they may not have intimate knowledge of. Custom database connectors can be created which allows leveraging the abstracted nature of the inline command.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)