PageRenderTime 1784ms queryTime 504ms sortTime 644ms getByIdsTime 53ms findMatchingLines 16ms

100+ results results for 'database' (1784 ms)

Not the results you expected?
gauge.cpp https://bitbucket.org/lennonchan/cafu.git | C++ | 298 lines
                    
58                                         ,0L
                    
59                                         ,(LONG)wxTheColourDatabase->m_nSize
                    
60                                         ,(PLONG)wxTheColourDatabase->m_palTable
                    
                
sequel.md https://bitbucket.org/kisp/cheat.git | Markdown | 315 lines
                    
2sequel: |-
                    
3  Open a database
                    
4  
                    
12  
                    
13  Open an SQLite memory database
                    
14  
                    
14  
                    
15  Without a filename argument, the sqlite adapter will setup a new sqlite database in RAM.
                    
16  
                    
253  
                    
254  Database#transaction is re-entrant:
                    
255  
                    
                
DefinitionLocalService.java https://github.com/l15k4/liferay-plugins.git | Java | 233 lines
                    
46	/**
                    
47	* Adds the definition to the database. Also notifies the appropriate model listeners.
                    
48	*
                    
57	/**
                    
58	* Creates a new definition with the primary key. Does not add the definition to the database.
                    
59	*
                    
65	/**
                    
66	* Deletes the definition with the primary key from the database. Also notifies the appropriate model listeners.
                    
67	*
                    
76	/**
                    
77	* Deletes the definition from the database. Also notifies the appropriate model listeners.
                    
78	*
                    
85	/**
                    
86	* Performs a dynamic query on the database and returns the matching rows.
                    
87	*
                    
                
index.html https://gitlab.com/essere.lab.public/qualitas.class-corpus | HTML | 142 lines
                    
74<ul>
                    
75	<li>ASCENDING (ascending order, case &#8211; or database &#8211; sensitive)</li>
                    
76	<li>ASCENDING_INSENSITIVE (ascending order, case-insensitive)</li>
                    
76	<li>ASCENDING_INSENSITIVE (ascending order, case-insensitive)</li>
                    
77	<li>DESCENDING (descending order, case &#8211; or database &#8211; sensitive)</li>
                    
78	<li>DESCENDING_INSENSITIVE (descending order, case-insensitive)</li>
                    
                
Mp3Url.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 252 lines
                    
34import org.apache.log4j.Logger;

                    
35import org.lnicholls.galleon.database.Audio;

                    
36import org.lnicholls.galleon.database.AudioManager;

                    
                
X_AD_Tree.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 277 lines
                    
83    /** Set Table.
                    
84    @param AD_Table_ID Database Table information */
                    
85    public void setAD_Table_ID (int AD_Table_ID)
                    
92    /** Get Table.
                    
93    @return Database Table information */
                    
94    public int getAD_Table_ID() 
                    
                
2016-03-18-fast-search-using-postgresql-trigram-indexes.html.md https://gitlab.com/artemad/www-gitlab-com | Markdown | 228 lines
                    
85stored in the `username` column. To further complicate matters you'd have to set
                    
86up a stored procedure and database trigger to keep these text vector columns in
                    
87sync with the ones containing the raw data.
                    
164"yorick", regardless of the casing. Running this query on my local PostgreSQL
                    
165database takes around 160 milliseconds and produces the following query plan:
                    
166
                    
206We also had to make some changes to ensure MySQL doesn't end up trying to create
                    
207these indexes when loading the schema definition into a database. For example,
                    
208`db/schema.rb` contains lines such as `add_index ..., using: :gin` and the
                    
208`db/schema.rb` contains lines such as `add_index ..., using: :gin` and the
                    
209`using` option is passed straight to the underlying database. Since MySQL
                    
210doesn't support GIN indexes this would lead to database errors when trying to
                    
                
MultipleHiLoPerTableGenerator.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 288 lines
                    
64 *
                    
65 * A hilo <tt>IdentifierGenerator</tt> that uses a database
                    
66 * table to store the last generated values. A table can contains
                    
                
SchemaBasedMultiTenancyTest.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 300 lines
                    
110						   false,	 // do not script the export (write it to file)
                    
111						   true,	 // do run it against the database
                    
112						   false,	 // do not *just* perform the drop
                    
138						   false, 	// do not script the export (write it to file)
                    
139						   true, 	// do run it against the database
                    
140						   false, 	// do not *just* perform the drop
                    
                
PersistentEntity.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 332 lines
                    
49
                    
50import org.exolab.castor.jdo.Database;
                    
51import org.exolab.castor.jdo.Persistent;
                    
78
                    
79    private transient Database _db;
                    
80    private long _timeStamp;
                    
188
                    
189    public final void jdoPersistent(final Database db) {
                    
190        _db = db;
                    
255
                    
256    public final void jdoBeforeCreate(final Database db) throws Exception {
                    
257        if (_group == null) {
                    
                
commit_spec.rb https://gitlab.com/alexkeramidas/gitlab-ce | Ruby | 269 lines
                    
69            before do
                    
70              allow(Gitlab::Database).to receive(:read_only?).and_return(true)
                    
71            end
                    
                
SecurityOrigin.h https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | C Header | 222 lines
                    
42public:
                    
43    static PassRefPtr<SecurityOrigin> createFromDatabaseIdentifier(const String&);
                    
44    static PassRefPtr<SecurityOrigin> createFromString(const String&);
                    
117
                    
118    bool canAccessDatabase() const { return !isUnique(); }
                    
119    bool canAccessLocalStorage() const { return !isUnique(); }
                    
167    // file names. This format should be used in storage APIs only.
                    
168    String databaseIdentifier() const;
                    
169
                    
                
DbConfigTask.php https://bitbucket.org/LeThanhDat/firstdummyapp.git | PHP | 384 lines
                    
60 */
                    
61	public $databaseClassName = 'DATABASE_CONFIG';
                    
62
                    
152			while (!$database) {
                    
153				$database = $this->in(__d('cake_console', 'Database Name:'), null, 'cake');
                    
154			}
                    
224		$this->out(__d('cake_console', "Pass:         %s", str_repeat('*', strlen($password))));
                    
225		$this->out(__d('cake_console', "Database:     %s", $database));
                    
226
                    
290					'password' => $info['password'],
                    
291					'database' => $info['database'],
                    
292					'prefix' => $info['prefix'],
                    
328			$out .= "\t\t'password' => '{$password}',\n";
                    
329			$out .= "\t\t'database' => '{$database}',\n";
                    
330
                    
                
naxxramas.h https://github.com/vertrigo/scriptdev2.git | C Header | 261 lines
                    
48
                    
49    TYPE_UNDYING_FAILED         = 15,                       // Achievements Undying and Immortal, needs to be saved to database
                    
50
                    
                
Image.h https://github.com/swapniltamse/one.git | C Header | 395 lines
                    
327    // *************************************************************************
                    
328    // DataBase implementation (Private)
                    
329    // *************************************************************************
                    
339    /**
                    
340     *  Bootstraps the database table(s) associated to the Image
                    
341     */
                    
370    // *************************************************************************
                    
371    // DataBase implementation
                    
372    // *************************************************************************
                    
380    /**
                    
381     *  Writes the Image in the database.
                    
382     *    @param db pointer to the db
                    
387    /**
                    
388     *  Writes/updates the Images data fields in the database.
                    
389     *    @param db pointer to the db
                    
                
CMysqlSchema.php https://bitbucket.org/hamaswa/destinationgreece.git | PHP | 334 lines
                    
11/**
                    
12 * CMysqlSchema is the class for retrieving metadata information from a MySQL database (version 4.1.x and 5.x).
                    
13 *
                    
151	 * @param CMysqlTableSchema $table the table metadata
                    
152	 * @return boolean whether the table exists in the database
                    
153	 */
                    
242	/**
                    
243	 * Returns all table names in the database.
                    
244	 * @param string $schema the schema of the tables. Defaults to empty string, meaning the current or default schema.
                    
245	 * If not empty, the returned table names will be prefixed with the schema name.
                    
246	 * @return array all table names in the database.
                    
247	 */
                    
258	/**
                    
259	 * Creates a command builder for the database.
                    
260	 * This method overrides parent implementation in order to create a MySQL specific command builder
                    
                
mgr.c https://github.com/genesi/linux-shortbus.git | C | 407 lines
                    
130 *      Enumerate and get configuration information about nodes configured
                    
131 *      in the node database.
                    
132 */
                    
                
Setup.cs https://github.com/iainlane/mono.git | C# | 327 lines
                    
61			if (listOfDbs.Length == 0) {
                    
62				string dbList = ConfigurationSettings.AppSettings ["Databases"];
                    
63				databases = dbList.Split (';');
                    
64			} else
                    
65				databases = (string []) listOfDbs.Clone ();
                    
66
                    
88		
                    
89			curDatabase = database;
                    
90			node = (XmlNode) ConfigurationSettings.GetConfig (database);
                    
90			node = (XmlNode) ConfigurationSettings.GetConfig (database);
                    
91			con = GetConnection (database);
                    
92
                    
120		{
                    
121			foreach (string db in databases) {
                    
122
                    
                
maps.php https://github.com/vietvh/Finder.git | PHP | 379 lines
                    
152	 *
                    
153	 * @return  JDatabaseQuery  A JDatabaseQuery object
                    
154	 *
                    
236	 *
                    
237	 * @return  JTable  A database object
                    
238	 *
                    
355
                    
356		// Check for a database error.
                    
357		if ($db->getErrorNum())
                    
369
                    
370		// Check for a database error.
                    
371		if ($db->getErrorNum())
                    
                
bitcoinrpc.h https://bitbucket.org/zozo123/bitcoin.git | C Header | 196 lines
                    
48    RPC_INVALID_PARAMETER           = -8,  // Invalid, missing or duplicate parameter
                    
49    RPC_DATABASE_ERROR              = -20, // Database error
                    
50    RPC_DESERIALIZATION_ERROR       = -22, // Error parsing or validating structure in raw format
                    
                
DirectoryNode.cpp https://github.com/MaDDoGo/xbmc.git | C++ | 347 lines
                    
54using namespace std;
                    
55using namespace XFILE::VIDEODATABASEDIRECTORY;
                    
56
                    
96
                    
97//  returns the database ids of the path,
                    
98void CDirectoryNode::GetDatabaseInfo(const CStdString& strPath, CQueryParams& params)
                    
228//  Collects Query params from this and all parent nodes. If a NODE_TYPE can
                    
229//  be used as a database parameter, it will be added to the
                    
230//  params object.
                    
                
AccountSystemBean.java https://gitlab.com/manoj-makkuboy/magnetism | Java | 276 lines
                    
50	private static final int WEB_LOGIN_UPDATE_SEC = 60*60; // Throttle updates to avoid
                    
51	                                                       // extra database writes
                    
52
                    
                
2013-01-19.log.php https://gitlab.com/vince.omega/mcb-nov-build | PHP | 50 lines
                    
492013-01-19 09:51:11 -05:00 --- error: Uncaught Kohana_404_Exception: The page you requested, favicon.ico, could not be found. in file /var/www/mch/kohana_core/system/core/Kohana.php on line 841
                    
502013-01-19 19:31:50 -05:00 --- error: Uncaught Kohana_Database_Exception: There was an SQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY qty_start ASC' at line 1 - SELECT * FROM product_costs WHERE productID =  ORDER BY qty_start ASC in file /var/www/mch/kohana_core/system/libraries/drivers/Database/Mysql.php on line 371
                    
51
                    
                
member.rb https://gitlab.com/espadav8/gitlab-ce | Ruby | 335 lines
                    
62
                    
63  scope :order_name_asc, -> { left_join_users.reorder(Gitlab::Database.nulls_last_order('users.name', 'ASC')) }
                    
64  scope :order_name_desc, -> { left_join_users.reorder(Gitlab::Database.nulls_last_order('users.name', 'DESC')) }
                    
64  scope :order_name_desc, -> { left_join_users.reorder(Gitlab::Database.nulls_last_order('users.name', 'DESC')) }
                    
65  scope :order_recent_sign_in, -> { left_join_users.reorder(Gitlab::Database.nulls_last_order('users.last_sign_in_at', 'DESC')) }
                    
66  scope :order_oldest_sign_in, -> { left_join_users.reorder(Gitlab::Database.nulls_last_order('users.last_sign_in_at', 'ASC')) }
                    
                
mobile-services-manage-command-line-interface.md https://gitlab.com/yeah568/azure-content | Markdown | 194 lines
                    
71
                    
72You can use the command-line tools to create a new mobile service instance. While creating the mobile service, you also create a SQL Database instance in a new server.
                    
73
                    
91
                    
92You can use the command-line tools to delete an existing mobile service, along with the related SQL Database and server. The following command deletes the mobile service, where `<service-name>` is the name of the mobile service to delete:
                    
93
                    
95
                    
96By including `-a` and `-q` parameters, this command also deletes the SQL Database and server used by the mobile service without displaying a prompt.
                    
97
                    
97
                    
98> [AZURE.NOTE] If you do not specify the <code>-q</code> parameter along with <code>-a</code> or <code>-d</code>, execution is paused and you are prompted to select delete options for your SQL Database. Only use the <code>-a</code> parameter when no other service uses the database or server; otherwise use the <code>-d</code> parameter to only delete data that belongs to the mobile service being deleted.
                    
99
                    
                
contact_request.rb https://github.com/bennett/xlsuite.git | Ruby | 278 lines
                    
45    return if self.params.blank?
                    
46    return unless self.add_party_to_database
                    
47    
                    
                
start-forms.md https://gitlab.com/brucealdridge/yii2 | Markdown | 246 lines
                    
50
                    
51> Info: [[yii\base\Model]] is used as a parent for model classes *not* associated with database tables.
                    
52[[yii\db\ActiveRecord]] is normally the parent for model classes that do correspond to database tables.
                    
245
                    
246In the next section, you will learn how to work with databases, which are needed in nearly every application.
                    
247
                    
                
CreateTableStmt.java https://gitlab.com/s9perween/Impala | Java | 239 lines
                    
123  /**
                    
124   * Can only be called after analysis, returns the name of the database the table will
                    
125   * be created within.
                    
                
IDBTransactionImpl.h https://gitlab.com/paretje/qtwebkit | C Header | 241 lines
                    
28
                    
29#if ENABLE(INDEXED_DATABASE)
                    
30
                    
30
                    
31#include "IDBDatabaseInfo.h"
                    
32#include "IDBError.h"
                    
86    const IDBTransactionInfo& info() const { return m_info; }
                    
87    IDBDatabase& database() { return m_database.get(); }
                    
88    const IDBDatabase& database() const { return m_database.get(); }
                    
88    const IDBDatabase& database() const { return m_database.get(); }
                    
89    IDBDatabaseInfo* originalDatabaseInfo() const { return m_info.originalDatabaseInfo(); }
                    
90
                    
191
                    
192    Ref<IDBDatabase> m_database;
                    
193    IDBTransactionInfo m_info;
                    
                
RawBucketProcessingStrategyPgsql.php https://bitbucket.org/blackriver/openx.git | PHP | 194 lines
                    
35 * (edge) servers, as well as from any intermediate aggregation servers, to
                    
36 * an upstream aggregation server, or the upstream central database server.
                    
37 *
                    
                
CHANGELOG.md https://gitlab.com/CORP-RESELLER/shopping-cart-lite | Markdown | 304 lines
                    
104
                    
105* Adds country of issuance and issuing bank bin database fields
                    
106
                    
                
UserResource.java https://gitlab.com/bourd0n/zakupki | Java | 220 lines
                    
51 * application because of this use-case.</li>
                    
52 * <li> Not having an outer join causes n+1 requests to the database. This is not a real issue as
                    
53 * we have by default a second-level cache. This means on the first HTTP call we do the n+1 requests,
                    
54 * but then all authorities come from the cache, so in fact it's much better than doing an outer join
                    
55 * (which will get lots of data from the database, for each HTTP call).</li>
                    
56 * <li> As this manages users, for security reasons, we'd rather have a DTO layer.</li>
                    
106                .body(null);
                    
107        // Lowercase the user login before comparing with database
                    
108        } else if (userRepository.findOneByLogin(managedUserVM.getLogin().toLowerCase()).isPresent()) {
                    
                
FileManagedUnitTestBase.php https://gitlab.com/reasonat/test8 | PHP | 213 lines
                    
170    // the hooks.
                    
171    $this->assertTrue($file->id() > 0, 'The file was added to the database.', 'Create test file');
                    
172
                    
                
sslinfo.c https://gitlab.com/kush/jarulraj-postgresql-cpp | C | 375 lines
                    
120 * Converts ASN1_STRING into text, converting all the characters into
                    
121 * current database encoding if possible.  Any invalid characters are
                    
122 * replaced by question marks.
                    
170 * Parameter: text fieldName  - field name string like 'CN' or commonName
                    
171 *			  to be looked up in the OpenSSL ASN1 OID database
                    
172 *
                    
204 * returns appropriate part of certificate subject converted into
                    
205 * database encoding.
                    
206 *
                    
207 * Parameter: fieldname text - will be looked up in OpenSSL object
                    
208 * identifier database
                    
209 *
                    
239 * returns appropriate part of certificate subject converted into
                    
240 * database encoding.
                    
241 *
                    
                
conventions.md https://bitbucket.org/rybadour/todo_list_site.git | Markdown | 418 lines
                    
23Model_BlogPost        | classes/Model/BlogPost.php
                    
24Database              | classes/Database.php
                    
25Database_Query        | classes/Database/Query.php
                    
178	// Correct:
                    
179	$db = new Database;
                    
180
                    
181	// Incorrect:
                    
182	$db = new Database();
                    
183
                    
                
article.php https://github.com/rietn/minima.git | PHP | 353 lines
                    
107	 *
                    
108	 * @return	JTable	A database object
                    
109	*/
                    
                
image-widget.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 230 lines
                    
50	* @param array $args     Widget arguments.
                    
51	* @param array $instance Saved values from database.
                    
52	*/
                    
102	 * @param array $new_instance Values just sent to be saved.
                    
103	 * @param array $old_instance Previously saved values from database.
                    
104	 *
                    
140	*
                    
141	* @param array $instance Previously saved values from database.
                    
142	*/
                    
                
adodb.inc.php https://github.com/Implying/tsukiboards.git | PHP | 392 lines
                    
3/**
                    
4 * ADOdb Lite is a PHP class to encapsulate multiple database APIs and is compatible with
                    
5 * a subset of the ADODB Command Syntax.
                    
27/**
                    
28 * Database connection
                    
29 * Usage: $db = new ADONewConnection('dbtype');
                    
139/**
                    
140 * Alternative Database connection
                    
141 * Usage: $db = new NewADOConnection('dbtype');
                    
187	var $record_set = false;
                    
188	var $database;
                    
189	var $dbtype;
                    
200	var $forcenewconnection = false;
                    
201	var $createdatabase = false;
                    
202	var $last_module_name;
                    
                
contact.md https://bitbucket.org/leispire/cordova-docs.git | Markdown | 238 lines
                    
46- __clone__: Returns a new Contact object that is a deep copy of the calling object, with the id property set to `null`. 
                    
47- __remove__: Removes the contact from the device contacts database.  An error callback is called with a `ContactError` object if the removal is unsuccessful.
                    
48- __save__: Saves a new contact to the device contacts database, or updates an existing contact if a contact with the same __id__ already exists.
                    
53
                    
54The `Contact` object represents a user contact.  Contacts can be created, saved to, or removed from the device contacts database.  Contacts can also be retrieved (individually or in bulk) from the database by invoking the `contacts.find` method.
                    
55
                    
204- __organizations:__ Partially supported.  The __name__ and __title__ of the first organization are stored in the BlackBerry __company__ and __title__ fields, respectively.
                    
205- __photos:__ - Partially supported.  A single thumbnail-sized photo is supported.  To set a contact's photo, pass in a either a Base64 encoded image, or a URL pointing to the image.  The image will be scaled down before saving to the BlackBerry contacts database.   The contact photo is returned as a Base64 encoded image.
                    
206- __categories:__  Partially supported.  Only 'Business' and 'Personal' categories are supported. 
                    
                
concept-configurations.md https://gitlab.com/brucealdridge/yii2 | Markdown | 270 lines
                    
9
                    
10In the following, a configuration is used to create and initialize a database connection:
                    
11
                    
239Configurations often vary according to the environment in which an application runs. For example,
                    
240in development environment, you may want to use a database named `mydb_dev`, while on production server
                    
241you may want to use the `mydb_prod` database. To facilitate switching environments, Yii provides a constant
                    
                
mime_type_lib.php https://gitlab.com/agustus/wisata-web | PHP | 300 lines
                    
152			'nc'      => 'application/x-netcdf',
                    
153			'odb'     => 'application/vnd.oasis.opendocument.database',
                    
154			'odc'     => 'application/vnd.oasis.opendocument.chart',
                    
                
app_base.rb https://bitbucket.org/rafaelmoreira/rails.git | Ruby | 268 lines
                    
13      JDBC_DATABASES = %w( jdbcmysql jdbcsqlite3 jdbcpostgresql jdbc )
                    
14      DATABASES.concat(JDBC_DATABASES)
                    
15
                    
43        class_option :database,           type: :string, aliases: '-d', default: 'sqlite3',
                    
44                                          desc: "Preconfigure for selected database (options: #{DATABASES.join('/')})"
                    
45
                    
73        super
                    
74        convert_database_option_for_jruby
                    
75      end
                    
149
                    
150      def gem_for_database
                    
151        # %w( mysql oracle postgresql sqlite3 frontbase ibm_db sqlserver jdbcmysql jdbcsqlite3 jdbcpostgresql )
                    
151        # %w( mysql oracle postgresql sqlite3 frontbase ibm_db sqlserver jdbcmysql jdbcsqlite3 jdbcpostgresql )
                    
152        case options[:database]
                    
153        when "oracle"         then "ruby-oci8"
                    
                
MySqlAlterTableTestscs.cs https://github.com/timosaikkonen/fluentmigrator.git | C# | 227 lines
                    
135            _generator.compatabilityMode = Runner.CompatabilityMode.STRICT;
                    
136            Assert.Throws<DatabaseOperationNotSupportedException>(() => _generator.Generate(new CreateSchemaExpression()));
                    
137        }
                    
                
Database.php https://bitbucket.org/acidel/buykoala.git | PHP | 307 lines
                    
37     * Database storage model

                    
38     * @var null|Mage_Core_Model_File_Storage_Database

                    
39     */

                    
39     */

                    
40    protected $_databaseModel = null;

                    
41

                    
43     * Storage resource model

                    
44     * @var null|Mage_Core_Model_Mysql4_File_Storage_Database

                    
45     */

                    
86        if (is_null($this->_databaseModel)) {

                    
87            $this->_databaseModel = Mage::getModel('core/file_storage_database');

                    
88        }

                    
89

                    
90        return $this->_databaseModel;

                    
91    }

                    
                
issuable.rb https://gitlab.com/nick.volynkin/gitlab-ee | Ruby | 292 lines
                    
147        group(arel_table[:id]).
                    
148        reorder(Gitlab::Database.nulls_last_order('highest_priority', 'ASC'))
                    
149    end
                    
                
milestone.rb https://gitlab.com/Stretch96/gitlab-ce | Ruby | 332 lines
                    
52  scope :order_by_name_asc, -> { order(Arel::Nodes::Ascending.new(arel_table[:title].lower)) }
                    
53  scope :reorder_by_due_date_asc, -> { reorder(Gitlab::Database.nulls_last_order('due_date', 'ASC')) }
                    
54
                    
154
                    
155    if Gitlab::Database.postgresql?
                    
156      rel.order(:project_id, :group_id, :due_date).select('DISTINCT ON (project_id, group_id) id')
                    
185      when 'due_date_desc'
                    
186        reorder(Gitlab::Database.nulls_last_order('due_date', 'DESC'))
                    
187      when 'name_asc'
                    
191      when 'start_date_asc'
                    
192        reorder(Gitlab::Database.nulls_last_order('start_date', 'ASC'))
                    
193      when 'start_date_desc'
                    
193      when 'start_date_desc'
                    
194        reorder(Gitlab::Database.nulls_last_order('start_date', 'DESC'))
                    
195      else
                    
                
MainFrame.java https://gitlab.com/PoslovnaInformatika/Banka | Java | 223 lines
                    
24import actions.main.form.OdjavaAction;
                    
25import database.DBConnection;
                    
26import gui.standard.form.AnalitikaIzvodaStandardForm;
                    
                
ServerVariablesControllerTest.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 325 lines
                    
13
                    
14require_once 'libraries/database_interface.inc.php';
                    
15require_once 'test/libraries/stubs/ResponseStub.php';
                    
48        //Mock DBI
                    
49        $dbi = $this->getMockBuilder('PMA\libraries\DatabaseInterface')
                    
50            ->disableOriginalConstructor()
                    
                
OpenSearchSearchEngine.java https://bitbucket.org/thenameisnigel/android_packages_apps_browser.git | Java | 299 lines
                    
30import android.content.Intent;
                    
31import android.database.AbstractCursor;
                    
32import android.database.Cursor;
                    
                
UniqueConstraint.java https://github.com/jabley/grails.git | Java | 219 lines
                    
31 * A constraint that validates the uniqueness of a property (will query the 
                    
32 * database during validation process).
                    
33 *
                    
                
survey_invite.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 234 lines
                    
34
                    
35// Database table definitions
                    
36$table_survey 					= Database :: get_course_table(TABLE_SURVEY);
                    
36$table_survey 					= Database :: get_course_table(TABLE_SURVEY);
                    
37$table_survey_question 			= Database :: get_course_table(TABLE_SURVEY_QUESTION);
                    
38$table_survey_question_option 	= Database :: get_course_table(TABLE_SURVEY_QUESTION_OPTION);
                    
38$table_survey_question_option 	= Database :: get_course_table(TABLE_SURVEY_QUESTION_OPTION);
                    
39$table_course 					= Database :: get_main_table(TABLE_MAIN_COURSE);
                    
40$table_user 					= Database :: get_main_table(TABLE_MAIN_USER);
                    
80// If this is the case there will be a language choice
                    
81$sql = "SELECT * FROM $table_survey WHERE c_id = $course_id AND code='".Database::escape_string($survey_data['code'])."'";
                    
82$result = Database::query($sql);
                    
82$result = Database::query($sql);
                    
83if (Database::num_rows($result) > 1) {
                    
84	Display::display_warning_message(get_lang('IdenticalSurveycodeWarning'));
                    
                
JoinTest.php https://gitlab.com/mohamed_hussein/prodt | PHP | 223 lines
                    
4
                    
5use Drupal\Core\Database\Database;
                    
6use Drupal\views_test_data\Plugin\views\join\JoinTest as JoinTestPlugin;
                    
61
                    
62    $query = Database::getConnection()->select('views_test_data');
                    
63    $table = ['alias' => 'users_field_data'];
                    
96    // object.
                    
97    $query = Database::getConnection()->select('views_test_data');
                    
98    $table = ['alias' => 'users_field_data'];
                    
                
adodb-oracle.inc.php https://github.com/shafiqissani/ASTRA-College-Website.git | PHP | 338 lines
                    
18class ADODB_oracle extends ADOConnection {
                    
19	var $databaseType = "oracle";
                    
20	var $replaceQuote = "''"; // string to use to replace quotes
                    
40	
                    
41	// format and return date string in database timestamp format
                    
42	function DBTimeStamp($ts)
                    
115		// returns true or false
                    
116		function _connect($argHostname, $argUsername, $argPassword, $argDatabasename, $mode=0)
                    
117		{
                    
128			if($argHostname) { // code copied from version submitted for oci8 by Jorma Tuomainen <jorma.tuomainen@ppoy.fi>
                    
129				if (empty($argDatabasename)) $argDatabasename = $argHostname;
                    
130				else {
                    
149
                    
150			if ($argDatabasename) $argUsername .= "@$argDatabasename";
                    
151
                    
                
plugin.js https://github.com/Doap/browsercms.git | JavaScript | 323 lines
                    
130			lastItem = itemsToMove[ itemsToMove.length - 1 ],
                    
131			database = {};
                    
132
                    
133		// Convert the list DOM tree into a one dimensional array.
                    
134		var listArray = CKEDITOR.plugins.list.listToArray( listNode, database );
                    
135
                    
145		// And replace the old list with the new forest.
                    
146		var newList = CKEDITOR.plugins.list.arrayToList( listArray, database, null, editor.config.enterMode, 0 );
                    
147
                    
191		// Clean up the markers.
                    
192		CKEDITOR.dom.element.clearAllMarkers( database );
                    
193	}
                    
                
SessionManager.java https://github.com/will-moore/openmicroscopy.git | Java | 313 lines
                    
25 * {@link SessionManager} implementations should strive to be only in-memory
                    
26 * representations of the database used as a performance optimization. When
                    
27 * possible, all changes should be made to the database as quickly and as
                    
                
loadview.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 383 lines
                    
108
                    
109    GED_CHECK_DATABASE_OPEN(gedp, GED_ERROR);
                    
110    GED_CHECK_VIEW(gedp, GED_ERROR);
                    
166	    if (ret != 1)
                    
167		bu_log("Failed to read database name\n");
                    
168
                    
182		 */
                    
183		bu_vls_printf(gedp->ged_result_str, "View script references a different database\nCannot load the view without closing the current database\n(i.e. run \"opendb %s\")\n", dbName);
                    
184
                    
                
concat.c https://bitbucket.org/vrrm/brl-cad-copy-for-fast-history-browsing-in-git.git | C | 419 lines
                    
82		
                    
83	/* Look up this new name in the existing (main) database */
                    
84	if( (dupdp = db_lookup( dbip, local, LOOKUP_QUIET )) != DIR_NULL )  {
                    
174
                    
175  /* Scan new database for overlaps */
                    
176  if( db_scan( newdbp, mged_dir_check, 0, NULL ) < 0 )  {
                    
226 *
                    
227 *  Add a solid or conbination from an auxillary database
                    
228 *  into the primary database.
                    
257		
                    
258	/* Look up this new name in the existing (main) database */
                    
259	if( (dp = db_lookup( dbip, local, LOOKUP_QUIET )) != DIR_NULL )  {
                    
263		/* This object already exists under the (prefixed) name */
                    
264		/* Protect the database against duplicate names! */
                    
265		/* Change object names, but NOT any references made by combinations. */
                    
                
bench_test.go https://gitlab.com/github-cloud-corporation/dex | Go | 436 lines
                    
7	"bytes"
                    
8	"database/sql"
                    
9	"database/sql/driver"
                    
37func benchQuery(b *testing.B, query string, result interface{}) {
                    
38	b.Skip("current pq database-backed benchmarks are inconsistent")
                    
39	b.StopTimer()
                    
185func benchPreparedQuery(b *testing.B, query string, result interface{}) {
                    
186	b.Skip("current pq database-backed benchmarks are inconsistent")
                    
187	b.StopTimer()
                    
                
songdb.pl https://gitlab.com/GrieverV/rockbox | Perl | 453 lines
                    
2#
                    
3# Rockbox song database docs:
                    
4# http://www.rockbox.org/wiki/DataBase
                    
10# configuration settings
                    
11my $db = "database";
                    
12my $dir;
                    
74  --path <dir>   Where your music collection is found
                    
75  --db <file>    Prefix for output files. Defaults to database.
                    
76  --strip <path> Removes this string from the left of all file names
                    
                
rabbit_jms_topic_exchange.erl https://github.com/rabbitmq/rabbitmq-server.git | Erlang | 313 lines
                    
31
                    
32%% Initialisation of database function:
                    
33-export([setup_db_schema/0]).
                    
46
                    
47%% Initialise database
                    
48-rabbit_boot_step({ rabbit_jms_topic_exchange_mnesia
                    
48-rabbit_boot_step({ rabbit_jms_topic_exchange_mnesia
                    
49                  , [ {description, "database exchange type JMS topic selector"}
                    
50                    , {mfa, {?MODULE, setup_db_schema, []}}
                    
50                    , {mfa, {?MODULE, setup_db_schema, []}}
                    
51                    , {requires, database}
                    
52                    , {enables, external_infrastructure} ] }).
                    
55
                    
56% Initialise database table for all exchanges of type <<"x-jms-topic">>
                    
57setup_db_schema() ->
                    
                
db_iface.c https://github.com/richlowe/illumos-gate.git | C | 490 lines
                    
429	 * set DB_DBT_MALLOC when retrieving a data item from a secondary
                    
430	 * database and then specify that same DBT as a key to a primary
                    
431	 * database, without having to clear flags.
                    
                
index.handlebars https://gitlab.com/fabiorf/chat | Handlebars | 219 lines
                    
11        {{#if needUpdate}}
                    
12            <div id="form-message"><img src="{{asset "@CurrentStyle/images/dash/warning.png"}}" alt="" class="warning" /> {{l10n "Please run the <a href=\"{0}\">Update wizard</a> to adjust your database." (route "update")}}</div>
                    
13            <br/>
                    
                
options.php https://gitlab.com/samina100/options-framework-theme | PHP | 291 lines
                    
2/**
                    
3 * A unique identifier is defined to store the options in the database and reference them from the theme.
                    
4 * By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
                    
19/**
                    
20 * Defines an array of options that will be used to generate the settings page and be saved in the database.
                    
21 * When creating the 'id' fields, make sure to use all lowercase and no spaces.
                    
                
tests.py https://github.com/Tippr/django.git | Python | 314 lines
                    
17        """
                    
18        The MyPerson model should be generating the same database queries as
                    
19        the Person model (when the same manager is used in each case).
                    
                
RequestContactExport.php https://gitlab.com/i-have-a-green/digitemis-v3 | PHP | 391 lines
                    
237     *
                    
238     * @param string[] $exportAttributes List of all the attributes that you want to export. These attributes must be present in your contact database. For example, ['fname', 'lname', 'email'].
                    
239     *
                    
                
Country.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 334 lines
                    
12/**
                    
13 * Database access object for the Country entity.
                    
14 */
                    
                
index.php https://bitbucket.org/Muntaser/cs425_project.git | PHP | 270 lines
                    
10// Issues relating to using wwwsqldesigner with postgresl:
                    
11//  * Request dialog for a database name is not needed. Enter anything when
                    
12//    requested.
                    
20
                    
21// Parameters for the application database
                    
22	function setup_saveloadlist() {
                    
22	function setup_saveloadlist() {
                    
23		Define("HOST_ADDR", "localhost");			// if the database cluster is on the same server as this application use 'localhost' otherwise the appropriate address (192.168.0.2 for example).
                    
24		Define("PORT_NO", "5432");					// default port is 5432. If you have or had more than one db cluster at the same time, consider ports 5433,... etc.
                    
34		Define("PORT_NO", "5432");			// default port is 5432. If you have or had more than one db cluster at the same time, consider ports 5433,... etc.
                    
35		Define("DATABASE_NAME", "testdb");	// the database you want to import
                    
36		Define("USER_NAME", "username");	// role having rights to read the database
                    
50	function import($conn) {
                    
51	//	$db = (isset($_GET["database"]) ? $_GET["database"] : "information_schema");
                    
52	//	$db = pg_escape_string($conn, $db);
                    
                
mysql_rake_test.rb https://github.com/mitchel456/rails.git | Ruby | 301 lines
                    
5    def setup
                    
6      @connection    = stub(:create_database => true)
                    
7      @configuration = {
                    
8        'adapter'  => 'mysql',
                    
9        'database' => 'my-app-db'
                    
10      }
                    
15
                    
16    def test_establishes_connection_without_database
                    
17      ActiveRecord::Base.expects(:establish_connection).
                    
17      ActiveRecord::Base.expects(:establish_connection).
                    
18        with('adapter' => 'mysql', 'database' => nil)
                    
19
                    
60      ActiveRecord::Base.connection.stubs(:create_database).raises(
                    
61        ActiveRecord::StatementInvalid.new("Can't create database 'dev'; database exists:")
                    
62      )
                    
                
CharacterBuilder.java https://gitlab.com/klauer/neo4j-tutorial | Java | 318 lines
                    
188
                    
189    private static Node ensureThingInDb( String thing, GraphDatabaseService database )
                    
190    {
                    
204
                    
205    private static void ensureThingIsIndexed( Node thingNode, GraphDatabaseService database )
                    
206    {
                    
211
                    
212    private static Node ensurePlanetInDb( Node characterNode, String planet, GraphDatabaseService database )
                    
213    {
                    
229
                    
230    private static void ensurePlanetIsIndexed( Node thePlanetNode, GraphDatabaseService database )
                    
231    {
                    
251
                    
252    private static void ensureCharacterIsIndexed( Node characterNode, GraphDatabaseService database )
                    
253    {
                    
                
SearchRequestParametersObservationVariables.cs https://gitlab.com/GRIN-Global/GRIN-Global-server | C# | 135 lines
                    
3 *
                    
4 * The Breeding API (BrAPI) is a Standardized REST ful Web Service API Specification for communicating Plant Breeding Data. BrAPI allows for easy data sharing between databases and tools involved in plant breeding. <div class=\"brapi-section\"> <h2 class=\"brapi-section-title\">General Reference Documentation</h2> <div class=\"gen-info-link\"><a href=\"https://github.com/plantbreeding/API/blob/master/Specification/GeneralInfo/URL_Structure.md\">URL Structure</a></div> <div class=\"gen-info-link\"><a href=\"https://github.com/plantbreeding/API/blob/master/Specification/GeneralInfo/Response_Structure.md\">Response Structure</a></div> <div class=\"gen-info-link\"><a href=\"https://github.com/plantbreeding/API/blob/master/Specification/GeneralInfo/Date_Time_Encoding.md\">Date/Time Encoding</a></div> <div class=\"gen-info-link\"><a href=\"https://github.com/plantbreeding/API/blob/master/Specification/GeneralInfo/Location_Encoding.md\">Location Encoding</a></div> <div class=\"gen-info-link\"><a href=\"https://github.com/plantbreeding/API/blob/master/Specification/GeneralInfo/Error_Handling.md\">Error Handling</a></div> <div class=\"gen-info-link\"><a href=\"https://github.com/plantbreeding/API/blob/master/Specification/GeneralInfo/Search_Services.md\">Search Services</a></div> </div>  <div class=\"brapi-section\"> <h2 class=\"brapi-section-title\">BrAPI Core</h2> <div class=\"brapi-section-description\">The BrAPI Core module contains high level entities used for organization and management. This includes Programs, Trials, Studies, Locations, People, and Lists</div> <div class=\"version-number\">V2.0</div> <div class=\"link-btn\"><a href=\"https://github.com/plantbreeding/API/tree/master/Specification/BrAPI-Core\">GitHub</a></div> <div class=\"link-btn\"><a href=\"https://app.swaggerhub.com/apis/PlantBreedingAPI/BrAPI-Core\">SwaggerHub</a></div> <div class=\"link-btn\"><a href=\"https://brapicore.docs.apiary.io\">Apiary</a></div> <div class=\"stop-float\"></div> </div>  <div class=\"current-brapi-section brapi-section\"> <h2 class=\"brapi-section-title\">BrAPI Phenotyping</h2> <div class=\"brapi-section-description\">The BrAPI Phenotyping module contains entities related to phenotypic observations. This includes Observation Units, Observations, Observation Variables, Traits, Scales, Methods, and Images</div> <div class=\"version-number\">V2.0</div> <div class=\"link-btn\"><a href=\"https://github.com/plantbreeding/API/tree/master/Specification/BrAPI-Phenotyping\">GitHub</a></div> <div class=\"link-btn\"><a href=\"https://app.swaggerhub.com/apis/PlantBreedingAPI/BrAPI-Phenotyping\">SwaggerHub</a></div> <div class=\"link-btn\"><a href=\"https://brapiphenotyping.docs.apiary.io\">Apiary</a></div> <div class=\"stop-float\"></div> </div>  <div class=\"brapi-section\"> <h2 class=\"brapi-section-title\">BrAPI Genotyping</h2> <div class=\"brapi-section-description\">The BrAPI Genotyping module contains entities related to genotyping analysis. This includes Samples, Markers, Variant Sets, Variants, Call Sets, Calls, References, Reads, and Vendor Orders</div> <div class=\"version-number\">V2.0</div> <div class=\"link-btn\"><a href=\"https://github.com/plantbreeding/API/tree/master/Specification/BrAPI-Genotyping\">GitHub</a></div> <div class=\"link-btn\"><a href=\"https://app.swaggerhub.com/apis/PlantBreedingAPI/BrAPI-Genotyping\">SwaggerHub</a></div> <div class=\"link-btn\"><a href=\"https://brapigenotyping.docs.apiary.io\">Apiary</a></div> <div class=\"stop-float\"></div> </div>  <div class=\"brapi-section\"> <h2 class=\"brapi-section-title\">BrAPI Germplasm</h2> <div class=\"brapi-section-description\">The BrAPI Germplasm module contains entities related to germplasm management. This includes Germplasm, Germplasm Attributes, Seed Lots, Crosses, Pedigree, and Progeny</div> <div class=\"version-number\">V2.0</div> <div class=\"link-btn\"><a href=\"https://github.com/plantbreeding/API/tree/master/Specification/BrAPI-Germplasm\">GitHub</a></div> <div class=\"link-btn\"><a href=\"https://app.swaggerhub.com/apis/PlantBreedingAPI/BrAPI-Germplasm\">SwaggerHub</a></div> <div class=\"link-btn\"><a href=\"https://brapigermplasm.docs.apiary.io\">Apiary</a></div> <div class=\"stop-float\"></div> </div>  <style> .link-btn{ float: left;  margin: 2px 10px 0 0;  padding: 0 5px;  border-radius: 5px;  background-color: #ddd; } .stop-float{   clear: both; } .version-number{   float: left;    margin: 5px 10px 0 5px; } .brapi-section-title{   margin: 0 10px 0 0;   font-size: 20px; } .current-brapi-section{   font-weight: bolder;   border-radius: 5px;    background-color: #ddd; } .brapi-section{   padding: 5px 5px;  } .brapi-section-description{   margin: 5px 0 0 5px; } </style>
                    
5 *
                    
                
SearchRequestParametersObservationVariables.cs https://gitlab.com/GRIN-Global/GRIN-Global-server | C# | 135 lines
                    
3 *
                    
4 * The Breeding API (BrAPI) is a Standardized REST ful Web Service API Specification for communicating Plant Breeding Data. BrAPI allows for easy data sharing between databases and tools involved in plant breeding. <div class=\"brapi-section\"> <h2 class=\"brapi-section-title\">General Reference Documentation</h2> <div class=\"gen-info-link\"><a href=\"https://github.com/plantbreeding/API/blob/master/Specification/GeneralInfo/URL_Structure.md\">URL Structure</a></div> <div class=\"gen-info-link\"><a href=\"https://github.com/plantbreeding/API/blob/master/Specification/GeneralInfo/Response_Structure.md\">Response Structure</a></div> <div class=\"gen-info-link\"><a href=\"https://github.com/plantbreeding/API/blob/master/Specification/GeneralInfo/Date_Time_Encoding.md\">Date/Time Encoding</a></div> <div class=\"gen-info-link\"><a href=\"https://github.com/plantbreeding/API/blob/master/Specification/GeneralInfo/Location_Encoding.md\">Location Encoding</a></div> <div class=\"gen-info-link\"><a href=\"https://github.com/plantbreeding/API/blob/master/Specification/GeneralInfo/Error_Handling.md\">Error Handling</a></div> <div class=\"gen-info-link\"><a href=\"https://github.com/plantbreeding/API/blob/master/Specification/GeneralInfo/Search_Services.md\">Search Services</a></div> </div>  <div class=\"brapi-section\"> <h2 class=\"brapi-section-title\">BrAPI Core</h2> <div class=\"brapi-section-description\">The BrAPI Core module contains high level entities used for organization and management. This includes Programs, Trials, Studies, Locations, People, and Lists</div> <div class=\"version-number\">V2.0</div> <div class=\"link-btn\"><a href=\"https://github.com/plantbreeding/API/tree/master/Specification/BrAPI-Core\">GitHub</a></div> <div class=\"link-btn\"><a href=\"https://app.swaggerhub.com/apis/PlantBreedingAPI/BrAPI-Core\">SwaggerHub</a></div> <div class=\"link-btn\"><a href=\"https://brapicore.docs.apiary.io\">Apiary</a></div> <div class=\"stop-float\"></div> </div>  <div class=\"brapi-section\"> <h2 class=\"brapi-section-title\">BrAPI Phenotyping</h2> <div class=\"brapi-section-description\">The BrAPI Phenotyping module contains entities related to phenotypic observations. This includes Observation Units, Observations, Observation Variables, Traits, Scales, Methods, and Images</div> <div class=\"version-number\">V2.0</div> <div class=\"link-btn\"><a href=\"https://github.com/plantbreeding/API/tree/master/Specification/BrAPI-Phenotyping\">GitHub</a></div> <div class=\"link-btn\"><a href=\"https://app.swaggerhub.com/apis/PlantBreedingAPI/BrAPI-Phenotyping\">SwaggerHub</a></div> <div class=\"link-btn\"><a href=\"https://brapiphenotyping.docs.apiary.io\">Apiary</a></div> <div class=\"stop-float\"></div> </div>  <div class=\"brapi-section\"> <h2 class=\"brapi-section-title\">BrAPI Genotyping</h2> <div class=\"brapi-section-description\">The BrAPI Genotyping module contains entities related to genotyping analysis. This includes Samples, Markers, Variant Sets, Variants, Call Sets, Calls, References, Reads, and Vendor Orders</div> <div class=\"version-number\">V2.0</div> <div class=\"link-btn\"><a href=\"https://github.com/plantbreeding/API/tree/master/Specification/BrAPI-Genotyping\">GitHub</a></div> <div class=\"link-btn\"><a href=\"https://app.swaggerhub.com/apis/PlantBreedingAPI/BrAPI-Genotyping\">SwaggerHub</a></div> <div class=\"link-btn\"><a href=\"https://brapigenotyping.docs.apiary.io\">Apiary</a></div> <div class=\"stop-float\"></div> </div>  <div class=\"current-brapi-section brapi-section\"> <h2 class=\"brapi-section-title\">BrAPI Germplasm</h2> <div class=\"brapi-section-description\">The BrAPI Germplasm module contains entities related to germplasm management. This includes Germplasm, Germplasm Attributes, Seed Lots, Crosses, Pedigree, and Progeny</div> <div class=\"version-number\">V2.0</div> <div class=\"link-btn\"><a href=\"https://github.com/plantbreeding/API/tree/master/Specification/BrAPI-Germplasm\">GitHub</a></div> <div class=\"link-btn\"><a href=\"https://app.swaggerhub.com/apis/PlantBreedingAPI/BrAPI-Germplasm\">SwaggerHub</a></div> <div class=\"link-btn\"><a href=\"https://brapigermplasm.docs.apiary.io\">Apiary</a></div> <div class=\"stop-float\"></div> </div>  <style> .link-btn{ float: left;  margin: 2px 10px 0 0;  padding: 0 5px;  border-radius: 5px;  background-color: #ddd; } .stop-float{   clear: both; } .version-number{   float: left;    margin: 5px 10px 0 5px; } .brapi-section-title{   margin: 0 10px 0 0;   font-size: 20px; } .current-brapi-section{   font-weight: bolder;   border-radius: 5px;    background-color: #ddd; } .brapi-section{   padding: 5px 5px;  } .brapi-section-description{   margin: 5px 0 0 5px; } </style>
                    
5 *
                    
                
frmTableMappings.cs https://gitlab.com/GRIN-Global/GRIN-Global-server | C# | 220 lines
                    
39                lvi.SubItems.Add(dr["is_enabled"].ToString());
                    
40                lvi.SubItems.Add(dr["database_area_code"].ToString());
                    
41                var lastTouched = dr["modified_date"] == DBNull.Value ? dr["created_date"] : dr["modified_date"];
                    
                
plugin.js https://github.com/nychng/django-ckeditor.git | JavaScript | 327 lines
                    
76
                    
77	function switchDir( element, dir, editor, database )
                    
78	{
                    
82		// Mark this element as processed by switchDir.
                    
83		CKEDITOR.dom.element.setMarker( database, element, 'bidi_processed', 1 );
                    
84
                    
161			{
                    
162				var database = {};
                    
163
                    
181
                    
182					selectedElement && switchDir( selectedElement, dir, editor, database );
                    
183
                    
205					while ( ( block = walker.next() ) )
                    
206						switchDir( block, dir, editor, database );
                    
207
                    
                
Parser.cpp https://bitbucket.org/cleto/zeroc-ice-package.git | C++ | 476 lines
                    
66    }
                    
67    catch(const DatabaseException& ex)
                    
68    {
                    
94    }
                    
95    catch(const DatabaseException& ex)
                    
96    {
                    
137    }
                    
138    catch(const DatabaseException& ex)
                    
139    {
                    
174    }
                    
175    catch(const DatabaseException& ex)
                    
176    {
                    
211    }
                    
212    catch(const DatabaseException& ex)
                    
213    {
                    
                
build-deviceRequirements.html https://github.com/infamous1982/j2mepolish.git | HTML | 202 lines
                    
9	<li class="relatedtechnologiesheader">Related Topics:</li>
                    
10	<li><a href="http://devices.j2mepolish.org">J2ME Polish Device Database</a></li>
                    
11	</ul>
                    
                
overview.html https://github.com/akiernan/omnibus.git | HTML | 243 lines
                    
15for the <A HREF="http://www.sqlite.org" TARGET="_blank">
                    
16SQLite 2/3 database engine</A>.
                    
17It is designed using JNI to interface to the SQLite API. That
                    
17It is designed using JNI to interface to the SQLite API. That
                    
18API is wrapped by methods in the <A HREF="SQLite/Database.html">
                    
19SQLite.Database</A> class.
                    
25for both SQLite 2.x and 3.x and detects at runtime the type of the
                    
26database.
                    
27<P>
                    
103<PRE>
                    
104   $ java SQLite.Shell [options] database [sql string]
                    
105</PRE>
                    
107<PRE>
                    
108   $ java -jar sqlite.jar [options] database [sql string]
                    
109</PRE>
                    
                
mutex.h https://github.com/akiernan/omnibus.git | C Header | 302 lines
                    
63#define	MTX_REP_CHKPT		22
                    
64#define	MTX_REP_DATABASE	23
                    
65#define	MTX_REP_DIAG		24
                    
                
format_topics_test.php https://github.com/pauln/moodle.git | PHP | 214 lines
                    
210        } catch (moodle_exception $e) {
                    
211            $this->assertEquals(1, preg_match('/^Can not find data record in database/', $e->getMessage()));
                    
212        }
                    
                
DatabaseReplicationTests.ps1 https://gitlab.com/jslee1/azure-powershell | Powershell | 293 lines
                    
50		# Create a local database copy
                    
51		$dbLocalCopy = New-AzureRmSqlDatabaseCopy -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $database.DatabaseName `
                    
52		 -CopyDatabaseName $copyDatabaseName
                    
111		# Create Readable Secondary
                    
112		$readSecondary = New-AzureRmSqlDatabaseSecondary -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $database.DatabaseName `
                    
113		 -PartnerResourceGroupName $partRg.ResourceGroupName -PartnerServerName $partServer.ServerName -AllowConnections All
                    
233
                    
234		Remove-AzureRmSqlDatabaseSecondary -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $database.DatabaseName `
                    
235		 -PartnerResourceGroupName $partRg.ResourceGroupName -PartnerServerName $partServer.ServerName
                    
270		# failover Secondary
                    
271		New-AzureRmSqlDatabaseSecondary -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $database.DatabaseName `
                    
272		 -PartnerResourceGroupName $partRg.ResourceGroupName -PartnerServerName $partServer.ServerName -AllowConnections All
                    
273
                    
274		$secondary = Get-AzureRmSqlDatabaseReplicationLink -ResourceGroupName $partRg.ResourceGroupName -ServerName $partServer.ServerName -DatabaseName $database.DatabaseName -PartnerResourceGroupName $rg.ResourceGroupName -PartnerServerName $server.ServerName
                    
275
                    
                
operations.py https://gitlab.com/mayakarya/django | Python | 266 lines
                    
16from django.core.exceptions import ImproperlyConfigured
                    
17from django.db.backends.sqlite3.operations import DatabaseOperations
                    
18from django.utils import six
                    
21
                    
22class SpatiaLiteOperations(BaseSpatialOperations, DatabaseOperations):
                    
23    name = 'spatialite'
                    
110                'Cannot determine the SpatiaLite version for the "%s" '
                    
111                'database (error was "%s").  Was the SpatiaLite initialization '
                    
112                'SQL loaded on this database?') % (self.connection.settings_dict['NAME'], msg)
                    
                
string_data.hpp https://gitlab.com/rbarramu/WaitlessIos | C++ Header | 323 lines
                    
48/// For compatibility with C-style strings, when a string is stored in a Realm
                    
49/// database, it is always followed by a terminating null character, regardless
                    
50/// of whether the string itself has internal null characters. This means that
                    
                
TransferTable.java https://gitlab.com/github-cloud-corp/aws-sdk-android | Java | 303 lines
                    
17
                    
18import android.database.sqlite.SQLiteDatabase;
                    
19
                    
246     *
                    
247     * @param database An SQLiteDatabase instance.
                    
248     * @param oldVersion The old version of the database.
                    
267     */
                    
268    private static void addVersion2Columns(SQLiteDatabase database) {
                    
269        String addUserMetadata = "ALTER TABLE " + TABLE_TRANSFER +
                    
288     */
                    
289    private static void addVersion3Columns(SQLiteDatabase database) {
                    
290        String addKMSKey = "ALTER TABLE " + TABLE_TRANSFER +
                    
297     */
                    
298    private static void addVersion4Columns(SQLiteDatabase database) {
                    
299        String addCannedAcl = "ALTER TABLE " + TABLE_TRANSFER +
                    
                
remote_mirror_spec.rb https://gitlab.com/habukagumba/gitlab-ce | Ruby | 288 lines
                    
93  describe '#remote_name' do
                    
94    context 'when remote name is persisted in the database' do
                    
95      it 'returns remote name with random value' do
                    
103
                    
104    context 'when remote name is not persisted in the database' do
                    
105      it 'returns remote name with remote mirror id' do
                    
112
                    
113    context 'when remote is not persisted in the database' do
                    
114      it 'returns nil' do
                    
                
RowsetReader.cpp https://github.com/ratboy2499/evemu_incursion.git | C++ | 334 lines
                    
27
                    
28#include "database/RowsetReader.h"
                    
29#include "database/RowsetToSQL.h"
                    
                
index.html https://bitbucket.org/lalinsky/oxygene.sk.git | HTML | 203 lines
                    
51			
                    
52				<li><a href="/category/database-modeller/">Database Modeller</a></li>
                    
53			
                    
                
DynamicEndpointSnitch.java https://github.com/thepaul/cassandra.git | Java | 309 lines
                    
29
                    
30import org.apache.cassandra.config.DatabaseDescriptor;
                    
31import org.apache.cassandra.net.MessagingService;
                    
44
                    
45    private int UPDATE_INTERVAL_IN_MS = DatabaseDescriptor.getDynamicUpdateInterval();
                    
46    private int RESET_INTERVAL_IN_MS = DatabaseDescriptor.getDynamicResetInterval();
                    
46    private int RESET_INTERVAL_IN_MS = DatabaseDescriptor.getDynamicResetInterval();
                    
47    private double BADNESS_THRESHOLD = DatabaseDescriptor.getDynamicBadnessThreshold();
                    
48    private String mbeanName;
                    
                
AdministrationFunctions.java https://github.com/d3m3vilurr/Book-Catalogue.git | Java | 354 lines
                    
134	 * 1. The button to goto the manage bookshelves activity
                    
135	 * 2. The button to export the database
                    
136	 * 3. The button to import the exported file into the database
                    
                
AlbumPlaylistInterface.cpp https://github.com/lfranchi/tomahawk.git | C++ | 342 lines
                    
24#include "collection/TracksRequest.h"
                    
25#include "database/Database.h"
                    
26#include "database/DatabaseImpl.h"
                    
26#include "database/DatabaseImpl.h"
                    
27#include "database/DatabaseCommand_AllTracks.h"
                    
28#include "Pipeline.h"
                    
134        }
                    
135        else if ( m_mode == DatabaseMode && !m_databaseLoaded )
                    
136        {
                    
138            {
                    
139                DatabaseCommand_AllTracks* cmd = new DatabaseCommand_AllTracks( m_collection );
                    
140                cmd->setAlbum( m_album->weakRef() );
                    
143                                SLOT( onTracksLoaded( QList<Tomahawk::query_ptr> ) ) );
                    
144                Database::instance()->enqueue( QSharedPointer<DatabaseCommand>( cmd ) );
                    
145            }
                    
                
index.html https://github.com/keenhenry/keenhenry.github.com.git | HTML | 1676 lines
                    
73
                    
74    <h1 class="ten columns offset-by-four">databases posts</h1>
                    
75<ul>
                    
413  <li class="archive_list">
                    
414    <a class="nine columns offset-by-four" href='/sqlite-in-memory-databases'>SQLite In-Memory Databases</a><span class="three columns gray">19 Jul 2015</span>
                    
415  </li>
                    
                
CTableNames.java https://gitlab.com/Manouchehri/binnavi | Java | 372 lines
                    
15*/
                    
16package com.google.security.zynamics.binnavi.Database;
                    
17
                    
18/**
                    
19 * Contains the names of the BinNavi tables of a BinNavi database.
                    
20 */
                    
                
content.php https://github.com/dg482/joomla-platform.git | PHP | 391 lines
                    
3 * @package     Joomla.Platform
                    
4 * @subpackage  Database
                    
5 *
                    
11
                    
12jimport('joomla.database.tableasset');
                    
13
                    
25	 *
                    
26	 * @param   database  &$db  A database connector object
                    
27	 *
                    
88
                    
89			// Get the asset id from the database.
                    
90			$this->_db->setQuery($query);
                    
272		{
                    
273			$this->setError(JText::_('JLIB_DATABASE_ERROR_ARTICLE_UNIQUE_ALIAS'));
                    
274			return false;
                    
                
devise.rb https://github.com/nabeta/enju_barcode.git | Ruby | 205 lines
                    
61
                    
62  # ==> Configuration for :database_authenticatable
                    
63  # For bcrypt, this is the cost for hashing the password and defaults to 10. If
                    
                
exports.lang.php https://bitbucket.org/speedealing/speedealing.git | PHP | 141 lines
                    
28		'SelectExportFields' => 'Välj fält du vill exportera, eller välj en fördefinierad export profil',
                    
29		'SelectImportFields' => 'Välj källfil fält du vill importera och deras mål fält i databasen genom att flytta dem upp och ned med ankare %s, eller välj en fördefinierad import profil:',
                    
30		'NotImportedFields' => 'Fält av källfil importeras inte',
                    
84		'FieldsInSourceFile' => 'Fält i källfilen',
                    
85		'FieldsInTargetDatabase' => 'Mål fält i Speedealing databas (*= obligatoriska)',
                    
86		'Field' => 'Fält',
                    
99		'NbOfSourceLines' => 'Antal rader i källfilen',
                    
100		'NowClickToTestTheImport' => 'Kontrollera importera parametrar som du har definierat. Om de är korrekta, klicka på knappen <b>&quot;%s&quot;</b> för att starta en simulering av importprocessen (inga data kommer att ändras i databasen, det är bara en simulering för tillfället) ...',
                    
101		'RunSimulateImportFile' => 'Starta import simulering',
                    
101		'RunSimulateImportFile' => 'Starta import simulering',
                    
102		'FieldNeedSource' => 'Det känns i databasen krävs att uppgifter från källfilen',
                    
103		'SomeMandatoryFieldHaveNoSource' => 'Vissa obligatoriska fält inte har någon källa från datafil',
                    
116		'FileWasImported' => 'Filen importeras nummer <b>%s.</b>',
                    
117		'YouCanUseImportIdToFindRecord' => 'Du hittar alla importerade poster i databasen genom att filtrera på fältet <b>import_key = %s</b>.',
                    
118		'NbOfLinesOK' => 'Antal rader utan fel och inga varningar: <b>%s.</b>',
                    
                
LocalBuildInfo.hs https://github.com/khskrede/mehh.git | Haskell | 214 lines
                    
12-- install dirs, the compiler, the exact package dependencies, the configured
                    
13-- programs, the package database to use and a bunch of miscellaneous configure
                    
14-- flags. It gets saved and reloaded from a file (@dist\/setup-config@). It gets
                    
116        withPrograms  :: ProgramConfiguration, -- ^Location and args for all programs
                    
117        withPackageDB :: PackageDBStack,  -- ^What package database to use, global\/user
                    
118        withVanillaLib:: Bool,  -- ^Whether to build normal libs.
                    
                
db_log_verify.html https://github.com/akiernan/omnibus.git | HTML | 257 lines
                    
42	[-b start lsn] [-e end lsn] [-s start time] [-z end time]
                    
43	[-d database file name] [-D database name]  
                    
44	</pre>
                    
45      <p>
                    
46         The <span class="command"><strong>db_log_verify</strong></span> utility verifies the log files of a specific database environment.
                    
47         This utility verifies a specific range of log records, or changed log records of a specific database.
                    
58            <p>
                    
59            	Specify the cache size (in megabytes) of the temporary database environment internally used during the log verification.
                    
60            </p>
                    
83            <p>
                    
84                 Specify a database name. Only log records related to this database are verified.
                    
85            </p>
                    
91            <p>
                    
92                 Specify a database file name. Only log records related this database file are verified.
                    
93            </p>
                    
                
restaurant_registration_exec.php https://bitbucket.org/isanneh/diners-best.git | PHP | 437 lines
                    
4	
                    
5	//Include database connection details
                    
6	//require_once('connect.php');
                    
                
db_env_set_func_region_map.html https://github.com/akiernan/omnibus.git | HTML | 221 lines
                    
54         performed by a process and all of its threads of control, not
                    
55         operations confined to a single database environment.
                    
56    </p>
                    
96                                The <span class="bold"><strong>dbenv</strong></span> parameter is the enclosing
                    
97                                database environment handle.  This handle is provided to uniquely
                    
98                                identify a shared memory region: the <span class="bold"><strong>dbenv</strong></span> parameter and the path are a unique
                    
109                                region.  Repeated requests for the shared regions of the same name, in
                    
110                                the same database environment, should return a reference to the same
                    
111                                memory.
                    
170                                The <span class="bold"><strong>dbenv</strong></span> parameter is the enclosing
                    
171                                database environment handle.
                    
172                            </p>
                    
                
pdo_sqlsrv_driver.php https://github.com/dchill42/CodeIgniter.git | PHP | 363 lines
                    
29/**
                    
30 * PDO SQLSRV Database Adapter Class
                    
31 *
                    
37 * @subpackage	Drivers
                    
38 * @category	Database
                    
39 * @author		EllisLab Dev Team
                    
39 * @author		EllisLab Dev Team
                    
40 * @link		http://codeigniter.com/user_guide/database/
                    
41 */
                    
88			empty($this->port) OR $this->dsn .= ','.$this->port;
                    
89			empty($this->database) OR $this->dsn .= ';Database='.$this->database;
                    
90
                    
134	/**
                    
135	 * Database connection
                    
136	 *
                    
                
search_test.php https://github.com/pauln/moodle.git | PHP | 245 lines
                    
68    /**
                    
69     * @var int $datarecordcount   The number of records in the database.
                    
70     */
                    
73    /**
                    
74     * @var int $groupdatarecordcount  The number of records in the database in groups 0 and 1.
                    
75     */
                    
88    /**
                    
89     * @var int $approvedatarecordcount  The number of approved records in the database.
                    
90     */
                    
93    /**
                    
94     * Set up function. In this instance we are setting up database
                    
95     * records to be used in the unit tests.
                    
105        // We reset the user sequence here to ensure we get the expected numbers.
                    
106        // TODO: Invent a better way for managing data file input against database sequence id's.
                    
107        $DB->get_manager()->reset_sequence('user');
                    
                
fault_solver_kinematic.f90 https://gitlab.com/Aaeinstein54/specfem3d | FORTRAN Modern | 371 lines
                    
57!
                    
58! prname        fault database is read from file prname_fault_db.bin
                    
59! Minv          inverse mass matrix
                    
                
DbMysqli.class.php https://bitbucket.org/zjut/labs.git | PHP | 345 lines
                    
46            if(empty($config))  $config =   $this->config;
                    
47            $this->linkID[$linkNum] = new mysqli($config['hostname'],$config['username'],$config['password'],$config['database'],$config['hostport']?intval($config['hostport']):3306);
                    
48            if (mysqli_connect_errno()) throw_exception(mysqli_connect_error());
                    
                
texytext.php https://bitbucket.org/pavolve/masterskayaludmila.git | PHP | 309 lines
                    
57    /**
                    
58     * Outputs database header
                    
59     *
                    
59     *
                    
60     * @param string  $db Database name
                    
61     * @return  bool        Whether it succeeded
                    
65    function PMA_exportDBHeader($db) {
                    
66        return PMA_exportOutputHandler('===' . __('Database') . ' ' . $db . "\n\n");
                    
67    }
                    
69    /**
                    
70     * Outputs database footer
                    
71     *
                    
71     *
                    
72     * @param string  $db Database name
                    
73     * @return  bool        Whether it succeeded
                    
                
FileUtilities.java https://gitlab.com/unofficial-mirrors/libreoffice-online | Java | 278 lines
                    
114        // Android's MimeTypeMap lacks some types that we need
                    
115        extensionToMimeTypeMap.put("odb", "application/vnd.oasis.opendocument.database");
                    
116        extensionToMimeTypeMap.put("odf", "application/vnd.oasis.opendocument.formula");
                    
                
DataPort.java https://gitlab.com/essere.lab.public/qualitas.class-corpus | Java | 331 lines
                    
39 * An engine to port data between two DataNodes. These nodes can potentially connect to
                    
40 * databases from different vendors. The only assumption is that all of the DbEntities
                    
41 * (tables) being ported are present in both source and destination databases and are
                    
                
package-summary.html https://gitlab.com/essere.lab.public/qualitas.class-corpus | HTML | 232 lines
                    
122<TD>Execute a Create table statement using the given connection, and then checks
                    
123 on the given virtual database that the proper table can be retrieved.</TD>
                    
124</TR>
                    
                
FilterParser.ParseException.html https://bitbucket.org/moretea/semantic_web.git | HTML | 205 lines
                    
93<TD><A HREF="#de.fuberlin.wiwiss.d2rq.mapgen"><B>de.fuberlin.wiwiss.d2rq.mapgen</B></A></TD>
                    
94<TD>The mapping generator introspects a database schema and generates a simple 
                    
95      default D2RQ mapping that matches the DB schema.&nbsp;</TD>
                    
                
html5sql.js https://gitlab.com/thomasphillips3/sea-301n1 | JavaScript | 327 lines
                    
160    openDatabase: function (name, displayname, size, whenOpen) {
                    
161      html5sql.database = openDatabase(name, '', displayname, size);
                    
162      readTransactionAvailable = typeof html5sql.database.readTransaction === 'function';
                    
214       */
                    
215      if (html5sql.database) {
                    
216
                    
236      } else {
                    
237      	// Database hasn't been opened.
                    
238        if(html5sql.logErrors){
                    
238        if(html5sql.logErrors){
                    
239          console.error('Error: Database needs to be opened before sql can be processed.');
                    
240        }
                    
246  	/* This is the same as html5sql.process but used when you want to change the
                    
247  	 * version of your database.  If the database version matches the oldVersion
                    
248  	 * passed to the function the statements passed to the funciton are
                    
                
 

Source

Language