Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.194.318 Times

MySQL Global User Variables UDF 1.0

Company: Frank DENIS
Date Added: July 05, 2013  |  Visits: 485

MySQL Global User Variables UDF

Report Broken Link
Printer Friendly Version


Product Homepage
Download (41 downloads)

MySQL Global User Variables UDF is a MySQL extension to store persistent variables.<br /><br />This shared library adds simple user functions to MySQL in order to keep persistent shared variables in memory. These variables and their values are available to all clients. Any data can be stored into these persistent variables, including BLOBs. Since updates are atomic and way faster than MEMORY tables, this is an easy and efficient way to handle counters and sequences.<br /><br />Usage:<br /><br />Storing a value<br /><br />An unlimited number of user variables can be created, as long as memory is available.<br />The GLOBAL_STORE(, ) stores a new shared global variable.<br /><br />Examples:<br /><br />mysql> DO GLOBAL_STORE("online_users", 42);<br />mysql> DO GLOBAL_STORE("secret_key", "pajfUyfnd");<br /><br />The GLOBAL_STORE() function always returns 1 unless an error occurred.<br /><br />Fetching a value<br /><br />Reading the value of a variable is the job of the GLOBAL_GET() function.<br />The value is returned, or NULL is the variable is undefined.<br /><br />Example:<br /><br />mysql> SELECT GLOBAL_GET("online_users;);<br />42<br /><br />mysql> SELECT id FROM pxs WHERE secret_key = GLOBAL_GET("secret_key");<br />1<br /><br />Atomic increments<br /><br />A single function call can read the previous value, add an integer (that can be negative), and store the new value into the variable.<br /><br />The function is GLOBAL_ADD(, ) and the return value is the new value of the variable.<br />Updates are always atomic, if the old value is 18 and you add 1, you will always get back 19.<br /><br />Example:<br /><br />mysql> DO GLOBAL_ADD("online_users", 1);<br />mysql> SELECT GLOBAL_ADD("online_users", -4);<br />39<br /><br />If the value of a variable was a string, the new value is the increment:<br /><br />mysql> SELECT GLOBAL_ADD("secret_key", 12);<br />12<br /><br />Adding a value to an undefined variable returns NULL.<br />A handy variant is GLOBAL_ADDP(, ). GLOBAL_ADDP() is similar to GLOBAL_ADD() but returns the PREVIOUS value of the variable instead of the new one.<br /><br />Example:<br /><br />mysql> DO GLOBAL_SET("xxx", 10);<br />mysql> SELECT GLOBAL_ADDP("xxx", 1);<br />10<br />mysql> SELECT GLOBAL_ADDP("xxx", 1);<br />11<br /><br />Installation:<br /><br />On m

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Atomic Global Global Getonline Users Global Getsecret Key Returned Secret Key Select Undefined
Users rating: 0/10

License: Freeware Size: 40.96 KB
MYSQL GLOBAL USER VARIABLES UDF RELATED
Utilities  -  Bevy for Mac OS 1.0.4
An application launcher that shows you all of your applications in a single window that can be opened with a global hot key, from the menu bar or by clicking its dock icon. With near-zero configuration, you just specify folders where your...
3.7 MB  
Modules  -  E-Publish : Select publication 6.x-1.0
This module allows users of the E-Publish module to select/edit which publication/edition a node is part of directly from the node form.
10 KB  
Form Processors  -  Enter Key Focus 1.1
This script allows to the form users to move to next text field by pressing the enter key, same as if you were to press the TAB key.
102.4 KB  
Modules  -  Chamilo integration 7.x-1.0-alpha1
#D7CX: I pledge that Chamilo module will have a full Drupal 7 release on the day that Drupal 7 is released.Integrates Drupal with Chamilo by providing ways to see Chamilo resources into Drupal blocks.Features- SSO (Single Sign ON)- One way account...
10 KB  
Modules  -  CAPTCHA After 6.x-1.0
Show CAPTCHA protection on selected forms after specified number of unsuccessful form submit attempts has been made.You can control thresholds for CAPTCHA After submit threshold, flooding threshold (per machine IP) and global flooding threshold....
10 KB  
Word Processing  -  NetD 0.995
NetD is a multilingual dictionary menu bar application which can search words using data of web-based dictionaries.Features: Search 13 kind of Dictionaries. Call NetD using global shortcut key.
 
Audio Tools  -  Voice Candy for Mac OS 1.2.1
A fun, effortless, recorder for your Mac. - Eight different effects to record with that alter your voice - Set a reminder with your recording - Awaken your Mac from sleep when reminder fires - You can snooze the reminder - Global shortcut key...
2 MB  
Calendars & Scheduling Tools  -  Mindful Lite 2.2.0.0
Mindful Lite combines an event reminder, a password manager and many related tools into one simple system tray application. The event reminder in Mindful Lite helps you remember appointments, meetings, anniversaries, statutory holidays, TV shows,...
1.27 MB  
Modules  -  Dokeos Integration 6.x-1.0
This module is abandonedIntegrates Drupal with Dokeos LMS by providing ways to see Dokeos resources into Drupal blocks.Features- SSO (Single Sign ON)- One way account synchronization: Drupal -> Dokeos (Under development)- Per user API keys, allows...
10 KB  
Programming  -  Test::DatabaseRow 1.04
This is a simple module for doing very very simple quick tests on a database, primarily designed to test if a row exists with the correct details in a table or not. For more advanced testing (joins, etc) it's probably easier for you to roll your...
10.24 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, BUSINESS
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Business  -  Inventoria Inventory Software Free 11.06
Inventoria is professional inventory stock management software for Windows that allows you to manage inventory in one or several locations. Manage your stock levels by categories, locations, and vendors. Combine Inventoria with HourGuard, Express...
611.18 KB  
Business  -  Java SQL Admin Tool for Linux 2.4.3
This is a Java-based Admin-Tool for SQL-Databases via JDBC. It needs to have JDK 1.6 underneath In the beginnings of Java I had my first look at this exciting product. So I decided to learn more about Java. As beeing a developer for...
686.08 KB  
Business  -  DBBalancer 0.4.4
DBBalancer is some sort of middleware that would sit in between of database clients, like C, C++, TCL, Java JDBC, Perl DBI, and a database server. Currently the only server supported is Postgres, but the architecture is open to embrace more...
174.08 KB  
Business  -  Postgres Plus 9.0.4
Postgres Plus is a distribution of PostgreSQL that contains the following additional features integrated in a convenient installation package: Postgres Studio for administration, Procedural Language Debugger, GridSQL Parallel Query, MySQL...
43.06 MB  
Business  -  Apatar Data Integration 1.12.23
Apatar is an open source Extract, Transform, and Load (ETL) project. Modular architecture delivers: 1. Visual job designer/mapping 2. Connectivity to all major data sources 3. Flexible Deployment Options (GUI, or server engine with JVM, or...
25.94 MB