100+ results for 'database'
Not the results you expected?
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 *
49 * @param definition the definition
57 /**
58 * Creates a new definition with the primary key. Does not add the definition to the database.
59 *
60 * @param definitionId the primary key for the new definition
65 /**
66 * Deletes the definition with the primary key from the database. Also notifies the appropriate model listeners.
67 *
68 * @param definitionId the primary key of the definition
DDLRecordVersionModel.java (https://github.com/spreddy/liferay-portal.git) Java · 374 lines
AnnouncementsEntryModel.java (https://github.com/spreddy/liferay-portal.git) Java · 372 lines
OHttpMultipartRequestCommand.java (https://github.com/cloudsmith/orientdb.git) Java · 257 lines
21 import java.util.LinkedHashMap;
23 import com.orientechnologies.orient.core.db.record.ODatabaseRecord;
24 import com.orientechnologies.orient.server.network.protocol.http.OHttpRequest;
25 import com.orientechnologies.orient.server.network.protocol.http.OHttpUtils;
40 public void parse(OHttpRequest iRequest, OHttpMultipartContentParser<B> standardContentParser,
41 OHttpMultipartContentParser<F> fileContentParser, ODatabaseRecord database) throws IOException {
42 int in;
43 char currChar;
232 protected void parseBaseContent(final OHttpRequest iRequest, final OHttpMultipartContentParser<B> contentParser,
233 final HashMap<String, String> headers, final OHttpMultipartContentInputStream in, ODatabaseRecord database) throws Exception {
234 B result = contentParser.parse(iRequest, headers, in, database);
240 protected void parseFileContent(final OHttpRequest iRequest, final OHttpMultipartContentParser<F> contentParser,
241 final HashMap<String, String> headers, final OHttpMultipartContentInputStream in, ODatabaseRecord database) throws Exception {
242 F result = contentParser.parse(iRequest, headers, in, database);
connection_proxy_spec.rb (https://gitlab.com/klml/gitlab-ee) Ruby · 316 lines
3 require 'spec_helper'
5 RSpec.describe Gitlab::Database::LoadBalancing::ConnectionProxy do
6 let(:proxy) { described_class.new }
45 end
47 Gitlab::Database::LoadBalancing::ConnectionProxy::NON_STICKY_READS.each do |name|
48 describe "#{name}" do
49 it 'runs the query on the replica' do
56 end
58 Gitlab::Database::LoadBalancing::ConnectionProxy::STICKY_WRITES.each do |name|
59 describe "#{name}" do
60 it 'runs the query on the primary and sticks to it' do
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 */
342 static void bootstrap(SqlDB * db)
370 // *************************************************************************
371 // DataBase implementation
372 // *************************************************************************
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 */
40 protected $_databaseModel = null;
42 /**
43 * Storage resource model
44 * @var null|Mage_Core_Model_Mysql4_File_Storage_Database
45 */
46 protected $_resourceModel = null;
86 if (is_null($this->_databaseModel)) {
87 $this->_databaseModel = Mage::getModel('core/file_storage_database');
88 }
90 return $this->_databaseModel;
91 }
AclBehaviorTest.php (https://github.com/shama/cakephp.git) PHP · 493 lines
commit_spec.rb (https://gitlab.com/solidnerd/gitlab-ce) Ruby · 269 lines
sql_preference_store_test.go (https://gitlab.com/auchalet/mattermost) Go · 369 lines
291 }
293 // make sure we get false if something different than "true" or "false" has been saved to database
294 if result := <-store.Preference().IsFeatureEnabled(feature3, userId); result.Err != nil {
295 t.Fatal(result.Err)
346 store.(*SqlStore).preference.(*SqlPreferenceStore).DeleteUnusedFeatures()
348 //make sure features with value "false" have actually been deleted from the database
349 if val, err := store.(*SqlStore).preference.(*SqlPreferenceStore).GetReplica().SelectInt(`SELECT COUNT(*)
350 FROM Preferences
DbStatement.php (https://github.com/su2921iw/ma3.git) PHP · 381 lines
ClockProvider.java (https://gitlab.com/parkourkarthik/android_packages_apps_DeskClock) Java · 240 lines
24 import android.database.Cursor;
25 import android.database.sqlite.SQLiteDatabase;
26 import android.database.sqlite.SQLiteQueryBuilder;
95 }
97 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
98 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs,
99 null, null, sort);
166 public Uri insert(Uri uri, ContentValues initialValues) {
167 long rowId;
168 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
169 switch (sURLMatcher.match(uri)) {
170 case ALARMS:
190 int count;
191 String primaryKey;
192 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
193 switch (sURLMatcher.match(uri)) {
194 case ALARMS:
CharacterBuilder.java (https://github.com/klauern/neo4j-tutorial.git) Java · 318 lines
203 }
205 private static void ensureThingIsIndexed( Node thingNode, GraphDatabaseService database )
206 {
207 database.index()
210 }
212 private static Node ensurePlanetInDb( Node characterNode, String planet, GraphDatabaseService database )
213 {
214 Node thePlanetNode = database.index()
228 }
230 private static void ensurePlanetIsIndexed( Node thePlanetNode, GraphDatabaseService database )
231 {
232 database.index()
PropelMigration_1455515810.php (https://gitlab.com/Isaki/le331.fr) PHP · 400 lines
JoinTest.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 223 lines
3 namespace Drupal\Tests\views\Kernel\Plugin;
5 use Drupal\Core\Database\Database;
6 use Drupal\views_test_data\Plugin\views\join\JoinTest as JoinTestPlugin;
7 use Drupal\views\Plugin\views\join\JoinPluginBase;
60 $join->setJoinValue($rand_int);
62 $query = Database::getConnection()->select('views_test_data');
63 $table = ['alias' => 'users_field_data'];
64 $join->buildJoin($query, $table, $view->query);
95 // Build the actual join values and read them back from the dbtng query
96 // object.
97 $query = Database::getConnection()->select('views_test_data');
98 $table = ['alias' => 'users_field_data'];
99 $join->buildJoin($query, $table, $view->query);
privacies.yml (https://github.com/levid/dub_leds.git) YAML · 55 lines
11 for order processing, will only be used to send you information and updates pertaining to your order.</blockquote> <br> <br> <strong>How do we protect your information?</strong> <br> <br>We implement a variety of security
12 measures to maintain the safety of your personal information when you place an order or enter, submit, or access your personal information. <br> <br>We offer the use of a secure server. All supplied sensitive/credit
13 information is transmitted via Secure Socket Layer (SSL) technology and then encrypted into our Payment gateway providers database only to be accessible by those authorized with special access rights to such systems, and are
14 required to?keep the information confidential. <br> <br>After a transaction, your private information (credit cards, social security numbers, financials, etc.) will not be kept on file for more than 60 days. <br> <br>
15 <strong>Do we use cookies?</strong> <br> <br>Yes (Cookies are small files that a site or its service provider transfers to your computers hard drive through your Web browser (if you allow) that enables the sites or service
39 for order processing, will only be used to send you information and updates pertaining to your order.</blockquote> <br> <br> <strong>How do we protect your information?</strong> <br> <br>We implement a variety of security
40 measures to maintain the safety of your personal information when you place an order or enter, submit, or access your personal information. <br> <br>We offer the use of a secure server. All supplied sensitive/credit
41 information is transmitted via Secure Socket Layer (SSL) technology and then encrypted into our Payment gateway providers database only to be accessible by those authorized with special access rights to such systems, and are
42 required to?keep the information confidential. <br> <br>After a transaction, your private information (credit cards, social security numbers, financials, etc.) will not be kept on file for more than 60 days. <br> <br>
43 <strong>Do we use cookies?</strong> <br> <br>Yes (Cookies are small files that a site or its service provider transfers to your computers hard drive through your Web browser (if you allow) that enables the sites or service
TransferTable.java (https://gitlab.com/github-cloud-corp/aws-sdk-android) Java · 303 lines
245 * Upgrades the database.
246 *
247 * @param database An SQLiteDatabase instance.
248 * @param oldVersion The old version of the database.
266 * Adds columns that were introduced in version 2 to the database
267 */
268 private static void addVersion2Columns(SQLiteDatabase database) {
269 String addUserMetadata = "ALTER TABLE " + TABLE_TRANSFER +
270 " ADD COLUMN " + COLUMN_USER_METADATA + " text;";
287 * Adds columns that were introduced in version 3 to the database
288 */
289 private static void addVersion3Columns(SQLiteDatabase database) {
290 String addKMSKey = "ALTER TABLE " + TABLE_TRANSFER +
291 " ADD COLUMN " + COLUMN_SSE_KMS_KEY + " text;";
296 * Adds columns that were introduced in version 3 to the database
297 */
298 private static void addVersion4Columns(SQLiteDatabase database) {
299 String addCannedAcl = "ALTER TABLE " + TABLE_TRANSFER +
300 " ADD COLUMN " + COLUMN_CANNED_ACL + " text;";
confirmable.rb (https://github.com/lest/devise.git) Ruby · 237 lines
2013-01-19.log.php (https://gitlab.com/vince.omega/mcb-nov-build) PHP · 50 lines
48 2013-01-19 09:50:56 -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
49 2013-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
50 2013-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
db_iface.c (https://github.com/buffygb/illumos-gate.git) C · 490 lines
index.handlebars (https://gitlab.com/fabiorf/chat) Handlebars · 219 lines
RaftWithAuth.cs (https://github.com/fitzchak/ravendb.git) C# · 183 lines
54 stores.ForEach(store =>
55 {
56 WaitForDocument(store.DatabaseCommands.ForSystemDatabase(), Constants.Cluster.ClusterConfigurationDocumentKey, TimeSpan.FromMinutes(1));
57 var configurationJson = store.DatabaseCommands.ForSystemDatabase().Get(Constants.Cluster.ClusterConfigurationDocumentKey);
93 stores.ForEach(store =>
94 {
95 WaitForDocument(store.DatabaseCommands.ForSystemDatabase(), Constants.Cluster.ClusterConfigurationDocumentKey, TimeSpan.FromMinutes(1));
96 var configurationJson = store.DatabaseCommands.ForSystemDatabase().Get(Constants.Cluster.ClusterConfigurationDocumentKey);
133 stores.ForEach(store =>
134 {
135 WaitForDocument(store.DatabaseCommands.ForSystemDatabase(), Constants.Cluster.ClusterConfigurationDocumentKey, TimeSpan.FromMinutes(1));
136 var configurationJson = store.DatabaseCommands.ForSystemDatabase().Get(Constants.Cluster.ClusterConfigurationDocumentKey);
174 stores.ForEach(store =>
175 {
176 WaitForDocument(store.DatabaseCommands.ForSystemDatabase(), Constants.Cluster.ClusterConfigurationDocumentKey, TimeSpan.FromMinutes(1));
177 var configurationJson = store.DatabaseCommands.ForSystemDatabase().Get(Constants.Cluster.ClusterConfigurationDocumentKey);
test_qgsdatabaseschemamodel.py (https://github.com/ricardogsilva/Quantum-GIS.git) Python · 211 lines
1 # -*- coding: utf-8 -*-
2 """QGIS Unit tests for QgsDatabaseSchemaModel
4 .. note:: This program is free software; you can redistribute it and/or modify
16 import os
17 from qgis.core import (
18 QgsDatabaseSchemaModel,
19 QgsProviderRegistry,
20 )
29 class TestPyQgsDatabaseSchemaModel(unittest.TestCase):
31 # Provider test cases must define the string URI for the test
50 conn = QgsProviderRegistry.instance().providerMetadata('postgres').createConnection(self.uri, {})
51 self.assertTrue(conn)
52 model = QgsDatabaseSchemaModel(conn)
53 self.assertGreaterEqual(model.rowCount(), 3)
54 old_count = model.rowCount()
ChildBase.java (https://github.com/timp21337/melati-old.git) Java · 358 lines
6 import org.melati.example.odmg.ChildTable;
7 import org.melati.example.odmg.OdmgDatabaseTables;
8 import org.melati.example.odmg.Parent;
9 import org.melati.poem.AccessPoemException;
26 /**
27 * Retrieves the Database object.
28 *
29 * see org.melati.poem.prepro.TableDef#generatePersistentBaseJava
30 * @return the database
31 */
32 public OdmgDatabaseTables getOdmgDatabaseTables() {
33 return (OdmgDatabaseTables)getDatabase();
293 throws AccessPoemException {
294 setParent(raw == null ? null :
295 getOdmgDatabaseTables().getParentTable().getParentObject(raw));
296 }
RequestContactExport.php (https://gitlab.com/i-have-a-green/digitemis-v3) PHP · 391 lines
Parser.cpp (https://bitbucket.org/cleto/zeroc-ice-package.git) C++ · 476 lines
CheckoutUtil.java (https://github.com/kevincho/liferay-plugins.git) Java · 279 lines
28 /**
29 * The persistence utility for the checkout service. This utility wraps {@link CheckoutPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
30 *
31 * <p>
132 /**
133 * Creates a new checkout with the primary key. Does not add the checkout to the database.
134 *
135 * @param checkoutId the primary key for the new checkout
142 /**
143 * Removes the checkout with the primary key from the database. Also notifies the appropriate model listeners.
144 *
145 * @param checkoutId the primary key of the checkout
DatabaseReplicationTests.ps1 (https://gitlab.com/jslee1/azure-powershell) Powershell · 293 lines
60 # Create a cross server copy
61 $dbCrossServerCopy = New-AzureRmSqlDatabaseCopy -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $database.DatabaseName `
62 -CopyResourceGroupName $copyRg.ResourceGroupName -CopyServerName $copyServer.ServerName -CopyDatabaseName $copyDatabaseName
110 {
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
114 Assert-NotNull $readSecondary.LinkId
232 -PartnerResourceGroupName $partRg.ResourceGroupName -PartnerServerName $partServer.ServerName -AllowConnections All
234 Remove-AzureRmSqlDatabaseSecondary -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $database.DatabaseName `
235 -PartnerResourceGroupName $partRg.ResourceGroupName -PartnerServerName $partServer.ServerName
236 }
272 -PartnerResourceGroupName $partRg.ResourceGroupName -PartnerServerName $partServer.ServerName -AllowConnections All
274 $secondary = Get-AzureRmSqlDatabaseReplicationLink -ResourceGroupName $partRg.ResourceGroupName -ServerName $partServer.ServerName -DatabaseName $database.DatabaseName -PartnerResourceGroupName $rg.ResourceGroupName -PartnerServerName $server.ServerName
276 $secondary | Set-AzureRmSqlDatabaseSecondary -PartnerResourceGroupName $rg.ResourceGroupName -Failover
AnnouncementsFlagLocalService.java (https://github.com/spreddy/liferay-portal.git) Java · 255 lines
47 /**
48 * Adds the announcements flag to the database. Also notifies the appropriate model listeners.
49 *
50 * @param announcementsFlag the announcements flag
58 /**
59 * Creates a new announcements flag with the primary key. Does not add the announcements flag to the database.
60 *
61 * @param flagId the primary key for the new announcements flag
67 /**
68 * Deletes the announcements flag with the primary key from the database. Also notifies the appropriate model listeners.
69 *
70 * @param flagId the primary key of the announcements flag
DbLocalPublicationTaskTypeImpl.java (https://github.com/geoserver/geoserver.git) Java · 249 lines
CTableNames.java (https://gitlab.com/Manouchehri/binnavi) Java · 372 lines
Makefile (https://gitlab.com/jbergstroem/node.js) Makefile · 380 lines
16 openssl req -new -x509 -days 9999 -config ca2.cnf -keyout ca2-key.pem -out ca2-cert.pem
17 echo '01' > ca2-serial
18 touch ca2-database.txt
20 #
70 fake-startcom-root-cert.pem
71 echo '01' > fake-startcom-root-serial
72 touch fake-startcom-root-database.txt
74 #
374 clean:
375 rm -f *.pem *.srl ca2-database.txt ca2-serial
377 test: agent1-verify agent2-verify agent3-verify agent4-verify agent5-verify
queries.sql (https://github.com/shafiqissani/ICC-Indian-Commission-Centre.git) SQL · 274 lines
123 `user` VARCHAR(255) NOT NULL,
124 `password` VARCHAR(255) NOT NULL,
125 `database` VARCHAR(255) NOT NULL,
126 `description` VARCHAR(255) NOT NULL,
127 `state` INT(1) NOT NULL default '0',
177 `id` INT( 4 ) NOT NULL auto_increment,
178 `label` VARCHAR( 255 ) NOT NULL ,
179 `record_in_database` INT( 4 ) NOT NULL,
180 `error` VARCHAR( 150 ) NOT NULL ,
181 `intro` TEXT NOT NULL ,
EmailAddressLocalService.java (https://github.com/linyuqun/liferay-portal-1.git) Java · 261 lines
45 /**
46 * Adds the email address to the database. Also notifies the appropriate model listeners.
47 *
48 * @param emailAddress the email address
56 /**
57 * Creates a new email address with the primary key. Does not add the email address to the database.
58 *
59 * @param emailAddressId the primary key for the new email address
65 /**
66 * Deletes the email address with the primary key from the database. Also notifies the appropriate model listeners.
67 *
68 * @param emailAddressId the primary key of the email address
_DataPage.cs (https://github.com/ischyrus/inbox2_desktop.git) C# · 362 lines
checkdbupdate.sh (https://github.com/Yannix/ezpublish.git) Shell · 406 lines
220 dbupdatefile=$4
221 echo "`$POSITION_RESTORE``$SETCOLOR_FAILURE`Updating($from_to_str)`$SETCOLOR_NORMAL`"
222 echo "Failed to run database update `$SETCOLOR_EMPHASIZE`$dbupdatefile`$SETCOLOR_NORMAL` for $type_name database `$SETCOLOR_EMPHASIZE`$db_name`$SETCOLOR_NORMAL`"
223 echo "Update file `$SETCOLOR_EMPHASIZE`$dbupdatefile`$SETCOLOR_NORMAL` does not exist"
224 }
235 dbupdatefile=$4
236 echo "`$POSITION_RESTORE``$SETCOLOR_FAILURE`Updating($from_to_str)`$SETCOLOR_NORMAL`"
237 echo "Failed to run database update `$SETCOLOR_EMPHASIZE`$dbupdatefile`$SETCOLOR_NORMAL` for $type_name database `$SETCOLOR_EMPHASIZE`$db_name`$SETCOLOR_NORMAL`"
238 }
271 db_export_failure $DB_TYPE "$from" "$mysql_schema_url"
272 echo "`$POSITION_RESTORE`Exporting(`$SETCOLOR_FAILURE`$from`$SETCOLOR_NORMAL`)"
273 echo "Failed checking out MySQL database schema `$SETCOLOR_EMPHASIZE`$mysql_schema_url`$SETCOLOR_NORMAL` from version `$SETCOLOR_EMPHASIZE`$VERSION`$SETCOLOR_NORMAL`"
274 exit 1
275 fi
ImmutableSessionProviderWithCookieTest.php (https://gitlab.com/link233/bootmw) PHP · 301 lines
rename_namespaces_spec.rb (https://gitlab.com/dandunckelman/gitlab-ce) Ruby · 289 lines
1 require 'spec_helper'
3 describe Gitlab::Database::RenameReservedPathsMigration::V1::RenameNamespaces, :truncate do
4 let(:migration) { FakeRenameReservedPathMigrationV1.new }
5 let(:subject) { described_class.new(['the-path'], migration) }
13 def migration_namespace(namespace)
14 Gitlab::Database::RenameReservedPathsMigration::V1::MigrationClasses::
15 Namespace.find(namespace.id)
16 end
249 expect(subject).to receive(:perform_rename)
250 .with(
251 kind_of(Gitlab::Database::RenameReservedPathsMigration::V1::MigrationClasses::Namespace),
252 'the-path0',
253 'the-path'
KaleoDefinitionModel.java (https://github.com/stevenjiancao/liferay-plugins.git) Java · 409 lines
HoldRequest.java (https://github.com/sconealone/cs304.git) Java · 418 lines
15 /**
16 * This class represents the HoldRequest table in the database.
17 *
18 * @author Christiaan Fernando
230 * Return all HoldRequests.
231 *
232 * This returns all HoldRequest objects in the SQL database.
233 *
234 * @throws SQLException
270 *
271 * Given a HoldRequest object with an initialized id field, this returns the
272 * HoldRequest object with that id field that exists in the SQL database.
273 * This is used if either the default constructor was called and the
274 * parameters are required, or if some of the parameters are changed and the
DLSyncEventLocalServiceWrapper.java (https://github.com/kiyoshilee/liferay-portal.git) Java · 328 lines
36 /**
37 * Adds the dl sync event to the database. Also notifies the appropriate model listeners.
38 *
39 * @param dlSyncEvent the dl sync event
56 /**
57 * Creates a new dl sync event with the primary key. Does not add the dl sync event to the database.
58 *
59 * @param syncEventId the primary key for the new dl sync event
69 /**
70 * Deletes the dl sync event from the database. Also notifies the appropriate model listeners.
71 *
72 * @param dlSyncEvent the dl sync event
RouteDataSet.h (https://gitlab.com/Codeaurora/platform_vendor_nxp_opensource_packages_apps_Nfc) C Header · 326 lines
180 typedef std::vector<RouteData*> Database;
181 enum DatabaseSelection {DefaultRouteDatabase, SecElemRouteDatabase};
228 **
229 *******************************************************************************/
230 Database* getDatabase (DatabaseSelection selection);
281 private:
282 Database mSecElemRouteDatabase; //routes when NFC service selects sec elem
283 Database mDefaultRouteDatabase; //routes when NFC service deselects sec elem
323 **
324 *******************************************************************************/
325 // void importTechnologyRoute (xmlNodePtr& element, Database& database);
326 };
Program.cs (https://github.com/GerHobbelt/hamsterdb.git) C# · 275 lines
98 System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
99 Hamster.Environment env = new Hamster.Environment();
100 Database[] db=new Database[3];
101 Cursor[] cursor=new Cursor[3];
103 /*
104 * set up the customer and order data - these arrays will later
105 * be inserted into the Databases
106 */
107 Customer[] customers=new Customer[4];
128 /*
129 * then create the three Databases in this Environment; each Database
130 * has a name - the first is our "customer" Database, the second
134 db[DBIDX_CUSTOMER] = env.CreateDatabase(DBNAME_CUSTOMER);
135 db[DBIDX_ORDER] = env.CreateDatabase(DBNAME_ORDER);
136 db[DBIDX_C2O] = env.CreateDatabase(DBNAME_C2O,
taggable_spec.rb (https://gitlab.com/sandorczettner/carpopularizer) Ruby · 272 lines
Database.php (https://github.com/SSilence/selfoss.git) PHP · 342 lines
15 * @author Tobias Zeising <tobias.zeising@aditu.de>
16 */
17 class Database implements \daos\DatabaseInterface {
18 use CommonSqlDatabase;
20 /** @var DatabaseConnection database connection */
21 private $connection;
148 }
149 if ($version < 4) {
150 $this->logger->debug('Upgrading database schema to version 4');
152 $this->beginTransaction();
303 /**
304 * optimize database by database own optimize statement
305 *
306 * @return void
VirtualHostPersistence.java (https://github.com/azzazzel/liferay-portal.git) Java · 281 lines
53 /**
54 * Creates a new virtual host with the primary key. Does not add the virtual host to the database.
55 *
56 * @param virtualHostId the primary key for the new virtual host
61 /**
62 * Removes the virtual host with the primary key from the database. Also notifies the appropriate model listeners.
63 *
64 * @param virtualHostId the primary key of the virtual host
219 /**
220 * Removes the virtual host where hostname = ? from the database.
221 *
222 * @param hostname the hostname
RatingsStatsLocalService.java (https://github.com/monicali/liferay-portal.git) Java · 260 lines
46 /**
47 * Adds the ratings stats to the database. Also notifies the appropriate model listeners.
48 *
49 * @param ratingsStats the ratings stats
57 /**
58 * Creates a new ratings stats with the primary key. Does not add the ratings stats to the database.
59 *
60 * @param statsId the primary key for the new ratings stats
66 /**
67 * Deletes the ratings stats with the primary key from the database. Also notifies the appropriate model listeners.
68 *
69 * @param statsId the primary key of the ratings stats
ShoppingCartLocalService.java (https://github.com/Oggi/liferay-portal.git) Java · 260 lines
46 /**
47 * Adds the shopping cart to the database. Also notifies the appropriate model listeners.
48 *
49 * @param shoppingCart the shopping cart
57 /**
58 * Creates a new shopping cart with the primary key. Does not add the shopping cart to the database.
59 *
60 * @param cartId the primary key for the new shopping cart
66 /**
67 * Deletes the shopping cart with the primary key from the database. Also notifies the appropriate model listeners.
68 *
69 * @param cartId the primary key of the shopping cart
SpellObject.cs (https://gitlab.com/RawRCoder/rom_db_editor) C# · 347 lines
DataEventListener.java (https://bitbucket.org/ambientic/traveldashboard-server.git) Java · 311 lines
124 if (DataConstants.DEBUG) TdServerLogger.print(TAG, methodTag, "Latitude = " + latitude + ", longitude = " + longitude + ", noise level = " + noiseLevel + ", timestamp = " + timestamp);
125 //Insert data into database
126 MongoDbManager.insertNoiseData(timestamp, latitude, longitude, noiseLevel);
127 //? Notify users listening to the station channel in a new Thread
184 }
185 } else if (city.equals(DataConstants.PARIS)) {
186 //Insert crowd data into database
187 MongoDbManager.insertCrowdData(city, stopId, routeId, timestamp, level);
188 }
221 );
223 //Insert data into database
224 MongoDbManager.updateUserRatings(city, userName, routeId, rating);
225 } else {
transactions_profiling.js (https://github.com/paralect/mongo.git) JavaScript · 242 lines
CompanyInfoLocalServiceUtil.java (https://github.com/danielreuther/liferay-portal.git) Java · 304 lines
48 /**
49 * Adds the company info to the database. Also notifies the appropriate model listeners.
50 *
51 * <p>
62 /**
63 * Creates a new company info with the primary key. Does not add the company info to the database.
64 *
65 * @param companyInfoId the primary key for the new company info
82 /**
83 * Deletes the company info from the database. Also notifies the appropriate model listeners.
84 *
85 * <p>
User.java (https://github.com/christine-huang/liferay-portal.git) Java · 244 lines
nosqldriver.php (https://github.com/dextercowley/joomla-platform.git) PHP · 447 lines
190 /**
191 * Method to get the database collation in use by sampling a text field of a table in the database.
192 *
193 * @return mixed The collation in use by the database or boolean false if not supported.
219 * @param boolean $new False to return the current query object, True to return a new JDatabaseQuery object.
220 *
221 * @return JDatabaseQuery The current query object or a new object extending the JDatabaseQuery class.
222 *
223 * @since 11.4
361 * Select a database for use.
362 *
363 * @param string $database The name of the database to select for use.
364 *
365 * @return boolean True if the database was successfully selected.
School.php (https://bitbucket.org/atnanahidiw/mcf6.git) PHP · 238 lines
RoleManagerImpl.java (https://github.com/skuzzle/polly.git) Java · 442 lines
16 import de.skuzzle.polly.sdk.PersistenceManagerV2.Write;
17 import de.skuzzle.polly.sdk.User;
18 import de.skuzzle.polly.sdk.exceptions.DatabaseException;
19 import de.skuzzle.polly.sdk.exceptions.InsufficientRightsException;
20 import de.skuzzle.polly.sdk.exceptions.RoleException;
113 @Override
114 public void createRole(final String newRoleName)
115 throws DatabaseException {
116 synchronized(SYNC) {
117 this.persistence.writeAtomic(new Atomic() {
118 @Override
119 public void perform(Write write) throws DatabaseException {
120 final Role role = write.read().findSingle(Role.class,
121 Role.ROLE_BY_NAME, new Param(newRoleName));
TestRecordAndRecords.java (https://github.com/LiveRamp/jack.git) Java · 251 lines
11 import com.rapleaf.jack.test_project.DatabasesImpl;
12 import com.rapleaf.jack.test_project.database_1.IDatabase1;
13 import com.rapleaf.jack.test_project.database_1.iface.IPostPersistence;
14 import com.rapleaf.jack.test_project.database_1.iface.IUserPersistence;
15 import com.rapleaf.jack.test_project.database_1.models.Comment;
16 import com.rapleaf.jack.test_project.database_1.models.Post;
17 import com.rapleaf.jack.test_project.database_1.models.User;
25 public class TestRecordAndRecords {
26 private static final IDatabase1 db = new DatabasesImpl().getDatabase1();
28 private static final double DELTA = 0.000001;
241 assertNull(commentAttr);
243 User modelFromRecord = record.getModel(User.TBL, db.getDatabases());
244 String newHandle = "new handle";
245 modelFromRecord.setHandle(newHandle).save();
FileNewPanel.java (https://bitbucket.org/spider_lock/my-invenotry.git) Java · 274 lines
sciWebServices.h (https://bitbucket.org/barakianc/nvidia-physx-and-apex-in-gge.git) C Header · 242 lines
MFAEmailOTPEntryLocalServiceWrapper.java (https://github.com/danielreuther/liferay-portal.git) Java · 408 lines
49 /**
50 * Adds the mfa email otp entry to the database. Also notifies the appropriate model listeners.
51 *
52 * <p>
70 /**
71 * Creates a new mfa email otp entry with the primary key. Does not add the mfa email otp entry to the database.
72 *
73 * @param mfaEmailOTPEntryId the primary key for the new mfa email otp entry
97 /**
98 * Deletes the mfa email otp entry with the primary key from the database. Also notifies the appropriate model listeners.
99 *
100 * <p>
ChangesetCollectionLocalServiceWrapper.java (https://github.com/danielreuther/liferay-portal.git) Java · 401 lines
40 /**
41 * Adds the changeset collection to the database. Also notifies the appropriate model listeners.
42 *
43 * <p>
70 /**
71 * Creates a new changeset collection with the primary key. Does not add the changeset collection to the database.
72 *
73 * @param changesetCollectionId the primary key for the new changeset collection
96 /**
97 * Deletes the changeset collection from the database. Also notifies the appropriate model listeners.
98 *
99 * <p>
UserGroupGroupRoleLocalService.java (https://github.com/linyuqun/liferay-portal-1.git) Java · 296 lines
46 /**
47 * Adds the user group group role to the database. Also notifies the appropriate model listeners.
48 *
49 * @param userGroupGroupRole the user group group role
57 /**
58 * Creates a new user group group role with the primary key. Does not add the user group group role to the database.
59 *
60 * @param userGroupGroupRolePK the primary key for the new user group group role
66 /**
67 * Deletes the user group group role with the primary key from the database. Also notifies the appropriate model listeners.
68 *
69 * @param userGroupGroupRolePK the primary key of the user group group role
ezstep_database_init.php (https://github.com/zerustech/ezpublish.git) PHP · 231 lines
41 if ( $this->Http->hasPostVariable( 'eZSetupDatabaseName' ) )
42 $this->PersistenceList['database_info']['dbname'] = $this->Http->postVariable( 'eZSetupDatabaseName' );
43 if ( $this->Http->hasPostVariable( 'eZSetupDatabaseUser' ) )
44 $this->PersistenceList['database_info']['user'] = $this->Http->postVariable( 'eZSetupDatabaseUser' );
45 if ( $this->Http->hasPostVariable( 'eZSetupDatabaseSocket' ) )
71 $databaseInfo = $this->PersistenceList['database_info'];
72 $databaseInfo['info'] = $databaseMap[$databaseInfo['type']];
73 if ( isset( $this->PersistenceList['regional_info'] ) )
74 {
132 $this->PersistenceList['database_info']['socket'] = $data['Socket'];
133 $this->PersistenceList['database_info']['database'] = $data['Database'];
135 $result = $this->checkDatabaseRequirements( false );
201 $databaseInfo = $this->PersistenceList['database_info'];
202 $databaseInfo['info'] = $databaseMap[$databaseInfo['type']];
203 $databaseInfo['table']['is_empty'] = $this->DBEmpty;
DLStorageQuotaLocalServiceWrapper.java (https://github.com/danielreuther/liferay-portal.git) Java · 377 lines
40 /**
41 * Adds the dl storage quota to the database. Also notifies the appropriate model listeners.
42 *
43 * <p>
57 /**
58 * Creates a new dl storage quota with the primary key. Does not add the dl storage quota to the database.
59 *
60 * @param dlStorageQuotaId the primary key for the new dl storage quota
82 /**
83 * Deletes the dl storage quota from the database. Also notifies the appropriate model listeners.
84 *
85 * <p>
YapDatabaseRelationshipEdge.m (https://gitlab.com/Mr.Tomato/MeituanDemo) Objective C · 450 lines
97 /**
98 * Public init method.
99 * Suitable for use with YapDatabaseRelationshipNode protocol.
100 **/
101 - (id)initWithName:(NSString *)inName destinationFilePath:(NSString *)dstFilePath
251 - (id)copyWithZone:(NSZone __unused *)zone
252 {
253 YapDatabaseRelationshipEdge *copy = [[YapDatabaseRelationshipEdge alloc] init];
255 copy->name = name;
285 - (id)copyWithSourceKey:(NSString *)newSrcKey collection:(NSString *)newSrcCollection rowid:(int64_t)newSrcRowid
286 {
287 YapDatabaseRelationshipEdge *copy = [[YapDatabaseRelationshipEdge alloc] init];
289 copy->name = name;
mover_spec.rb (https://gitlab.com/klml/gitlab-ee) Ruby · 481 lines
PluginSettingLocalService.java (https://github.com/azzazzel/liferay-portal.git) Java · 260 lines
45 /**
46 * Adds the plugin setting to the database. Also notifies the appropriate model listeners.
47 *
48 * @param pluginSetting the plugin setting
56 /**
57 * Creates a new plugin setting with the primary key. Does not add the plugin setting to the database.
58 *
59 * @param pluginSettingId the primary key for the new plugin setting
65 /**
66 * Deletes the plugin setting with the primary key from the database. Also notifies the appropriate model listeners.
67 *
68 * @param pluginSettingId the primary key of the plugin setting
PasswordTrackerLocalService.java (https://github.com/azzazzel/liferay-portal.git) Java · 257 lines
45 /**
46 * Adds the password tracker to the database. Also notifies the appropriate model listeners.
47 *
48 * @param passwordTracker the password tracker
56 /**
57 * Creates a new password tracker with the primary key. Does not add the password tracker to the database.
58 *
59 * @param passwordTrackerId the primary key for the new password tracker
65 /**
66 * Deletes the password tracker with the primary key from the database. Also notifies the appropriate model listeners.
67 *
68 * @param passwordTrackerId the primary key of the password tracker
RosterLocalServiceWrapper.java (https://gitlab.com/4615833/liferay-ide) Java · 288 lines
42 /**
43 * Adds the roster to the database. Also notifies the appropriate model listeners.
44 *
45 * @param roster the roster
54 /**
55 * Creates a new roster with the primary key. Does not add the roster to the database.
56 *
57 * @param rosterId the primary key for the new roster
75 /**
76 * Deletes the roster from the database. Also notifies the appropriate model listeners.
77 *
78 * @param roster the roster
FeedLocalService.java (https://github.com/l15k4/liferay-plugins.git) Java · 244 lines
46 /**
47 * Adds the feed to the database. Also notifies the appropriate model listeners.
48 *
49 * @param feed the feed
57 /**
58 * Creates a new feed with the primary key. Does not add the feed to the database.
59 *
60 * @param feedId the primary key for the new feed
65 /**
66 * Deletes the feed with the primary key from the database. Also notifies the appropriate model listeners.
67 *
68 * @param feedId the primary key of the feed
charset_conversion.lib.php (https://github.com/shafiqissani/ASTRA-College-Website.git) PHP · 325 lines
BTreeCursor.cs (https://gitlab.com/OpenSourceMirror/sourcenav) C# · 295 lines
65 /// </returns>
66 public bool Move(uint recno, LockingInfo info) {
67 DatabaseEntry key = new DatabaseEntry();
68 key.Data = BitConverter.GetBytes(recno);
69 DatabaseEntry data = new DatabaseEntry();
276 /// </exception>
277 public new void AddUnique(
278 KeyValuePair<DatabaseEntry, DatabaseEntry> pair) {
279 base.AddUnique(pair);
280 }
288 /// is added as the first or the last of the data items for that key.
289 /// </param>
290 public new void Add(KeyValuePair<DatabaseEntry, DatabaseEntry> pair,
291 InsertLocation loc) {
292 base.Add(pair, loc);
DDMStructureLinkLocalServiceWrapper.java (https://github.com/spreddy/liferay-portal.git) Java · 328 lines
33 /**
34 * Adds the d d m structure link to the database. Also notifies the appropriate model listeners.
35 *
36 * @param ddmStructureLink the d d m structure link
46 /**
47 * Creates a new d d m structure link with the primary key. Does not add the d d m structure link to the database.
48 *
49 * @param structureLinkId the primary key for the new d d m structure link
57 /**
58 * Deletes the d d m structure link with the primary key from the database. Also notifies the appropriate model listeners.
59 *
60 * @param structureLinkId the primary key of the d d m structure link
MBMailingListModel.java (https://github.com/viktorkovacs/liferay-portal-trunk.git) Java · 497 lines
BrowserTrackerUtil.java (https://github.com/viktorkovacs/liferay-portal-trunk.git) Java · 353 lines
27 /**
28 * The persistence utility for the browser tracker service. This utility wraps {@link BrowserTrackerPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
29 *
30 * <p>
140 /**
141 * Creates a new browser tracker with the primary key. Does not add the browser tracker to the database.
142 *
143 * @param browserTrackerId the primary key for the new browser tracker
151 /**
152 * Removes the browser tracker with the primary key from the database. Also notifies the appropriate model listeners.
153 *
154 * @param browserTrackerId the primary key of the browser tracker to remove
OutputLinkTest.php (https://gitlab.com/ElvisAns/tiki) PHP · 280 lines
62 $link->setIdentifier('TestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabase');
64 $this->assertLinkIs('<a href="tiki-editpage.php?page=TestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSize" title="Create page: TestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSize" class="wiki wikinew text-danger tips">TestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabase</a>', $link->getHtml());
65 }
69 // If page name exceeds 158 characters, it must be trimmed.
70 // Link will be to trimmed page while displayed text will be full name
71 $this->info['TestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSize'] = [
72 'pageName' => 'TestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSize',
77 $link = new WikiParser_OutputLink();
78 $link->setIdentifier('TestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeTHISMUSTBETRIMMED');
79 $link->setWikiLookup([$this, 'getPageInfo']);
80 $link->setWikiLinkBuilder([$this, 'getWikiLink']);
82 $this->assertLinkIs('<a href="TestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSize" title="Testing" class="wiki wiki_page">TestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeOfTheDatabaseTestWithAVeryBigNameThatExceedsTheColumnSizeTHISMUSTBETRIMMED</a>', $link->getHtml());
83 }
ControllerShutdownThread.html (https://gitlab.com/essere.lab.public/qualitas.class-corpus) HTML · 191 lines
BatchUpdateException.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 328 lines
47 * @param SQLState an XOPEN or SQL:2003 code identifying the exception
48 * @param vendorCode an exception code used by a particular
49 * database vendor
50 * @param updateCounts an array of <code>int</code>, with each element
51 * indicating the update count, <code>Statement.SUCCESS_NO_INFO</code> or
264 * @param SQLState an XOPEN or SQL:2003 code identifying the exception
265 * @param vendorCode an exception code used by a particular
266 * database vendor
267 * @param updateCounts an array of <code>int</code>, with each element
268 *indicating the update count, <code>Statement.SUCCESS_NO_INFO</code> or
TasksRepository.java (https://gitlab.com/szjy-nj/MusicPlayer2) Java · 311 lines
qgsdatasourceuri.cpp (https://github.com/linz/Quantum-GIS.git) C++ · 527 lines
489 {
490 mHost = host;
491 mDatabase = database;
492 mPort = port;
493 mUsername = username;
503 {
504 mService = service;
505 mDatabase = database;
506 mUsername = username;
507 mPassword = password;
522 }
524 void QgsDataSourceURI::setDatabase( const QString &database )
525 {
526 mDatabase = database;
one_spec.rb (https://github.com/kuruma-gs/mongoid.git) Ruby · 568 lines
SCLicenseLocalServiceWrapper.java (https://github.com/Oggi/liferay-portal.git) Java · 359 lines
35 /**
36 * Adds the s c license to the database. Also notifies the appropriate model listeners.
37 *
38 * @param scLicense the s c license
48 /**
49 * Creates a new s c license with the primary key. Does not add the s c license to the database.
50 *
51 * @param licenseId the primary key for the new s c license
59 /**
60 * Deletes the s c license with the primary key from the database. Also notifies the appropriate model listeners.
61 *
62 * @param licenseId the primary key of the s c license
WorkflowInstanceLinkLocalService.java (https://github.com/monicali/liferay-portal.git) Java · 298 lines
46 /**
47 * Adds the workflow instance link to the database. Also notifies the appropriate model listeners.
48 *
49 * @param workflowInstanceLink the workflow instance link
57 /**
58 * Creates a new workflow instance link with the primary key. Does not add the workflow instance link to the database.
59 *
60 * @param workflowInstanceLinkId the primary key for the new workflow instance link
66 /**
67 * Deletes the workflow instance link with the primary key from the database. Also notifies the appropriate model listeners.
68 *
69 * @param workflowInstanceLinkId the primary key of the workflow instance link
User.php (https://github.com/markn86/moodle.git) PHP · 473 lines
151 /**
152 * Save the user to the database.
153 *
154 * @return boolean True if the user object was successfully saved
169 /**
170 * Delete the user from the database.
171 *
172 * @return boolean True if the user object was successfully deleted
387 /**
388 * Load the user from the database.
389 *
390 * @param int $id Record ID of user
TaxiDAO.html (https://github.com/team42/Peer2Peer.git) HTML · 238 lines
134 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
135 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
136 Uses of <A HREF="../../database/TaxiDAO.html" title="class in database">TaxiDAO</A> in <A HREF="../../database/package-summary.html">database</A></FONT></TH>
137 </TR>
138 </TABLE>
142 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
143 <TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
144 <TH ALIGN="left" COLSPAN="2">Fields in <A HREF="../../database/package-summary.html">database</A> declared as <A HREF="../../database/TaxiDAO.html" title="class in database">TaxiDAO</A></FONT></TH>
145 </TR>
146 <TR BGCOLOR="white" CLASS="TableRowColor">
159 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
160 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
161 Uses of <A HREF="../../database/TaxiDAO.html" title="class in database">TaxiDAO</A> in <A HREF="../../taxicomm/package-summary.html">taxicomm</A></FONT></TH>
162 </TR>
163 </TABLE>
systemtagmanagertest.php (https://gitlab.com/wuhang2003/core) PHP · 424 lines
drupal-8.field-schema-data-uninstall-2573667.php (https://gitlab.com/guillaumev/alkarama) PHP · 74 lines
TieneRestriccionAccesoQryMd.cs (https://bitbucket.org/rjulietagarcia/estadisticas.git) C# · 245 lines
AssetCategoryPropertyLocalService.java (https://github.com/viktorkovacs/liferay-portal-trunk.git) Java · 274 lines
45 /**
46 * Adds the asset category property to the database. Also notifies the appropriate model listeners.
47 *
48 * @param assetCategoryProperty the asset category property to add
56 /**
57 * Creates a new asset category property with the primary key. Does not add the asset category property to the database.
58 *
59 * @param categoryPropertyId the primary key for the new asset category property
65 /**
66 * Deletes the asset category property with the primary key from the database. Also notifies the appropriate model listeners.
67 *
68 * @param categoryPropertyId the primary key of the asset category property to delete
SemanticAnalyzerFactory.java (https://github.com/steeve/hive.git) Java · 190 lines
37 commandType.put(HiveParser.TOK_EXPLAIN, HiveOperation.EXPLAIN);
38 commandType.put(HiveParser.TOK_LOAD, HiveOperation.LOAD);
39 commandType.put(HiveParser.TOK_CREATEDATABASE, HiveOperation.CREATEDATABASE);
40 commandType.put(HiveParser.TOK_DROPDATABASE, HiveOperation.DROPDATABASE);
41 commandType.put(HiveParser.TOK_SWITCHDATABASE, HiveOperation.SWITCHDATABASE);
42 commandType.put(HiveParser.TOK_CREATETABLE, HiveOperation.CREATETABLE);
43 commandType.put(HiveParser.TOK_DROPTABLE, HiveOperation.DROPTABLE);
58 commandType.put(HiveParser.TOK_ALTERTABLE_SERDEPROPERTIES, HiveOperation.ALTERTABLE_SERDEPROPERTIES);
59 commandType.put(HiveParser.TOK_ALTERTABLE_CLUSTER_SORT, HiveOperation.ALTERTABLE_CLUSTER_SORT);
60 commandType.put(HiveParser.TOK_SHOWDATABASES, HiveOperation.SHOWDATABASES);
61 commandType.put(HiveParser.TOK_SHOWTABLES, HiveOperation.SHOWTABLES);
62 commandType.put(HiveParser.TOK_SHOW_TABLESTATUS, HiveOperation.SHOW_TABLESTATUS);
85 commandType.put(HiveParser.TOK_REVOKE_ROLE, HiveOperation.REVOKE_ROLE);
86 commandType.put(HiveParser.TOK_SHOW_ROLE_GRANT, HiveOperation.SHOW_ROLE_GRANT);
87 commandType.put(HiveParser.TOK_ALTERDATABASE_PROPERTIES, HiveOperation.ALTERDATABASE);
88 commandType.put(HiveParser.TOK_DESCDATABASE, HiveOperation.DESCDATABASE);
alter3.q (https://svn.apache.org/repos/asf/incubator/hcatalog/) text · 0 lines
powerdynamo.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 471 lines
changes-3.3.2 (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 391 lines
PGAccessor.java
(http://xbird.googlecode.com/svn/trunk/)
Java · 162 lines
✨ Summary
This Java class, PGAccessor, is a utility class for managing PostgreSQL database connections. It provides methods for escaping SQL strings, converting byte arrays to PostgreSQL bytea strings, and supporting bulk loading of data into tables. The class also implements a custom BulkLoader interface for importing data from files into PostgreSQL tables.
This Java class, PGAccessor, is a utility class for managing PostgreSQL database connections. It provides methods for escaping SQL strings, converting byte arrays to PostgreSQL bytea strings, and supporting bulk loading of data into tables. The class also implements a custom BulkLoader interface for importing data from files into PostgreSQL tables.
bibliography.collection.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 105 lines
ldm.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1552 lines
✨ Summary
This C code is part of a disk partitioning system, specifically designed to handle dynamic disks. It reads and parses data from a database stored on a device, creating partitions and devices as needed. The code checks for signs of a dynamic disk, validates the database contents, and creates the necessary partitions and devices.
This C code is part of a disk partitioning system, specifically designed to handle dynamic disks. It reads and parses data from a database stored on a device, creating partitions and devices as needed. The code checks for signs of a dynamic disk, validates the database contents, and creates the necessary partitions and devices.
120 /**
121 * ldm_parse_privhead - Read the LDM Database PRIVHEAD structure
122 * @data: Raw database PRIVHEAD structure loaded from the device
123 * @ph: In-memory privhead structure in which to return parsed information
124 *
125 * This parses the LDM database PRIVHEAD structure supplied in @data and
126 * sets up the in-memory privhead structure @ph with the obtained information.
127 *
135 BUG_ON(!data || !ph);
136 if (MAGIC_PRIVHEAD != get_unaligned_be64(data)) {
137 ldm_error("Cannot find PRIVHEAD structure. LDM database is"
138 " corrupt. Aborting.");
139 return false;
157 if (ph->config_size != LDM_DB_SIZE) { /* 1 MiB in sectors. */
158 /* Warn the user and continue, carefully. */
159 ldm_info("Database is normally %u bytes, it claims to "
160 "be %llu bytes.", LDM_DB_SIZE,
161 (unsigned long long)ph->config_size);
db2Local.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 31 lines
11 <connection>
12 <parameter name="database" default="sample" description="Database to connect to"/>
13 <parameter name="user" default="scott" description="DB2 user"/>
14 <parameter name="password" default="tiger" description="DB2 password"/>
15 <string>jdbc:db2:{database}</string>
16 </connection>
qsql_psql.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1372 lines
860 {
861 if (!isOpen()) {
862 qWarning("QPSQLDriver::beginTransaction: Database not open");
863 return false;
864 }
877 {
878 if (!isOpen()) {
879 qWarning("QPSQLDriver::commitTransaction: Database not open");
880 return false;
881 }
910 {
911 if (!isOpen()) {
912 qWarning("QPSQLDriver::rollbackTransaction: Database not open");
913 return false;
914 }
qrawfont.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 147 lines
50 #include <QtGui/qfont.h>
51 #include <QtGui/qtransform.h>
52 #include <QtGui/qfontdatabase.h>
54 #if !defined(QT_NO_RAWFONT)
127 bool supportsCharacter(quint32 ucs4) const;
128 bool supportsCharacter(QChar character) const;
129 QList<QFontDatabase::WritingSystem> supportedWritingSystems() const;
131 QByteArray fontTable(const char *tagName) const;
133 static QRawFont fromFont(const QFont &font,
134 QFontDatabase::WritingSystem writingSystem = QFontDatabase::Any);
136 private:
LICENSE
(https://jedit.svn.sourceforge.net/svnroot/jedit)
License · 32 lines
✨ Summary
The license allows for internal distribution and use of the Unicode Character Database files, as well as redistribution to third parties with notice and disclaimer retained. It disclaims fitness for purpose and makes no warranties, and limits rights to redistribute the data. The recipient agrees to determine applicability of information provided.
The license allows for internal distribution and use of the Unicode Character Database files, as well as redistribution to third parties with notice and disclaimer retained. It disclaims fitness for purpose and makes no warranties, and limits rights to redistribute the data. The recipient agrees to determine applicability of information provided.
1 The files Blocks.txt and UnicodeData.txt are extracted from the Unicode
2 Character Database, which is covered by the following license:
4 UCD Terms of Use
6 Disclaimer
8 The Unicode Character Database is provided as is by Unicode, Inc. No claims
9 are made as to fitness for any particular purpose. No warranties of any
10 kind are expressed or implied. The recipient agrees to determine
15 This disclaimer is applicable for all other data files accompanying the
16 Unicode Character Database, some of which have been compiled by the Unicode
17 Consortium, and some of which have been supplied by other sources.
22 distribution and to freely use the information supplied in the creation of
23 products supporting the UnicodeTM Standard. The files in the Unicode
24 Character Database can be redistributed to third parties or other
25 organizations (whether for profit or not) as long as this notice and the
26 disclaimer notice are retained. Information can be extracted from these
Logging.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 67 lines
packet_history.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 490 lines
✨ Summary
This C code implements a timestamp-based congestion control algorithm for TCP-like protocols, specifically DCCP (Datagram Congestion Control Protocol). It manages a ring buffer to store timestamp and CCVal values, sampling RTT (Round-Trip Time) from these values to adjust congestion control parameters. The code provides functions for allocating and purging the ring buffer, as well as computing RTT samples based on timestamp and CCVal values.
This C code implements a timestamp-based congestion control algorithm for TCP-like protocols, specifically DCCP (Datagram Congestion Control Protocol). It manages a ring buffer to store timestamp and CCVal values, sampling RTT (Round-Trip Time) from these values to adjust congestion control parameters. The code provides functions for allocating and purging the ring buffer, as well as computing RTT samples based on timestamp and CCVal values.
352 * tfrc_rx_handle_loss - Loss detection and further processing
353 * @h: The non-empty RX history object
354 * @lh: Loss Intervals database to update
355 * @skb: Currently received packet
356 * @ndp: The NDP count belonging to @skb
357 * @calc_first_li: Caller-dependent computation of first loss interval in @lh
358 * @sk: Used by @calc_first_li (see tfrc_lh_interval_add)
359 * Chooses action according to pending loss, updates LI database when a new
360 * loss was detected, and does required post-processing. Returns 1 when caller
361 * should send feedback, 0 otherwise.
379 } else if (__two_after_loss(h, skb, ndp)) {
380 /*
381 * Update Loss Interval database and recycle RX records
382 */
383 is_new_loss = tfrc_lh_interval_add(lh, h, calc_first_li, sk);
ccid3.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 172 lines
✨ Summary
This is a C header file that defines structures and functions for handling DCCP (Datagram Congestion Control Protocol) connections. It provides data types and functions for managing receiver and sender half-connection sockets, tracking packet loss and congestion, and controlling transmission rates. The code appears to be part of a larger network protocol implementation.
This is a C header file that defines structures and functions for handling DCCP (Datagram Congestion Control Protocol) connections. It provides data types and functions for managing receiver and sender half-connection sockets, tracking packet loss and congestion, and controlling transmission rates. The code appears to be part of a larger network protocol implementation.
145 * @ccid3hcrx_tstamp_last_ack - Time at which last feedback was sent
146 * @ccid3hcrx_hist - Packet history (loss detection + RTT sampling)
147 * @ccid3hcrx_li_hist - Loss Interval database
148 * @ccid3hcrx_s - Received packet size in bytes
149 * @ccid3hcrx_pinv - Inverse of Loss Event Rate (RFC 4342, sec. 8.5)
nxhtml-changes.html (https://bitbucket.org/shuangxinyu/emacspack.git) HTML · 3396 lines
db_queues.rb
(git://github.com/37signals/37s_cookbooks.git)
Ruby · 103 lines
✨ Summary
This Ruby script checks the size of a database queue by executing a MySQL query and comparing its result to user-defined thresholds for warning and critical values. It outputs Nagios-compatible performance data, indicating whether the query result is within acceptable limits or not, and exits with an appropriate status code (OK, WARNING, CRITICAL, or UNKNOWN).
This Ruby script checks the size of a database queue by executing a MySQL query and comparing its result to user-defined thresholds for warning and critical values. It outputs Nagios-compatible performance data, indicating whether the query result is within acceptable limits or not, and exits with an appropriate status code (OK, WARNING, CRITICAL, or UNKNOWN).
1 #!/usr/bin/env ruby
2 #
3 # Check the size of a database queue
4 #
55 end
57 option :database do
58 short '-d'
59 long '--database=VALUE'
60 desc 'MySQL database'
61 end
79 if c[:warn] && c[:crit]
81 conn = Mysql::connect(c[:host], c[:username], c[:password], c[:database], c[:port].to_i)
82 res = conn.query(c[:query])
83 value = res.fetch_row
textedit.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 734 lines
DictionarySQLiteConnection.java
(http://softkeyboard.googlecode.com/svn/)
Java · 105 lines
✨ Summary
This Java code defines a SQLite database connection for storing and retrieving dictionary words with their frequencies. It provides methods to add new words, retrieve all existing words, and handle database upgrades and downgrades. The data is stored in a table with columns for word, frequency, and an auto-incrementing ID.
This Java code defines a SQLite database connection for storing and retrieving dictionary words with their frequencies. It provides methods to add new words, retrieve all existing words, and handle database upgrades and downgrades. The data is stored in a table with columns for word, frequency, and an auto-incrementing ID.
8 import android.database.Cursor;
9 import android.database.sqlite.SQLiteDatabase;
10 import android.database.sqlite.SQLiteOpenHelper;
48 @Override
49 public void onCreate(SQLiteDatabase db) {
50 db.execSQL("CREATE TABLE " + mTableName + " ("
51 + "Id INTEGER PRIMARY KEY,"
63 public void addWord(String word, int freq)
64 {
65 SQLiteDatabase db = super.getWritableDatabase();
67 ContentValues values = new ContentValues();
84 //starting with a big storage
85 List<DictionaryWord> words = new ArrayList<DictionaryWord>(5000);
86 SQLiteDatabase db = getReadableDatabase();
87 Cursor c = db.query(mTableName, new String[]{mWordsColumnName, mFrequencyColumnName}, null, null, null, null, null);
AddonManager.h
(git://github.com/xbmc/xbmc.git)
C Header · 299 lines
✨ Summary
This is a C++ header file for an Addon Manager class, which manages and interacts with add-ons installed on a Kodi media player system. It provides methods for enabling/disabling add-ons, checking installation status, loading add-on descriptions, and parsing repository XML files. The class also handles events related to add-on updates and unloads.
This is a C++ header file for an Addon Manager class, which manages and interacts with add-ons installed on a Kodi media player system. It provides methods for enabling/disabling add-ons, checking installation status, loading add-on descriptions, and parsing repository XML files. The class also handles events related to add-on updates and unloads.
11 #include "Addon.h"
12 #include "AddonDatabase.h"
13 #include "Repository.h"
14 #include "threads/CriticalSection.h"
202 /* \brief Check whether an addon has been disabled via DisableAddon.
203 In case the disabled cache does not know about the current state the database routine will be used.
204 \param ID id of the addon
205 \sa DisableAddon
286 static std::map<TYPE, IAddonMgrCallback*> m_managers;
287 mutable CCriticalSection m_critSection;
288 CAddonDatabase m_database;
289 CEventSource<AddonEvent> m_events;
290 CBlockingEventSource<AddonEvent> m_unloadEvents;
prefer.internal.olink.xml (git://github.com/easyb/easyb-core.git) XML · 73 lines
45 <para>If you set the <parameter>prefer.internal.olink</parameter>
46 parameter to a non-zero value, then the processor will
47 first look in the olink database
48 for the olink's <sgmltag>targetptr</sgmltag> attribute value
49 in document matching the <parameter>current.docid</parameter>
50 parameter value. If it isn't found there, then
51 it tries the document in the database
52 with the <sgmltag>targetdoc</sgmltag>
53 value that matches the olink's <sgmltag>targetdoc</sgmltag>
59 with an id matching the olink's <sgmltag>targetptr</sgmltag>
60 value. The current document's olink data must be
61 included in the target database for this to work.</para>
63 <caution>
semantic-idle.el
(git://github.com/emacsmirror/cedet.git)
Lisp · 1354 lines
✨ Summary
This Lisp code defines a function semantic-idle
that displays information about tags in a buffer, such as their names and classes. It formats this information into a string using various functions, including format-tag-list-function
, which determines the length of the output. The output is displayed in two modes: in the mode line or in the header line, depending on the configuration.
This Lisp code defines a function semantic-idle
that displays information about tags in a buffer, such as their names and classes. It formats this information into a string using various functions, including format-tag-list-function
, which determines the length of the output. The output is displayed in two modes: in the mode line or in the header line, depending on the configuration.
729 (defsubst semantic-idle-summary-find-current-symbol-tag (sym)
730 "Search for a semantic tag with name SYM in database tables.
731 Return the tag found or nil if not found.
732 If semanticdb is not in use, use the current buffer only."
733 (car (if (and (featurep 'semanticdb) semanticdb-current-database)
734 (cdar (semanticdb-deep-find-tags-by-name sym))
735 (semantic-deep-find-tags-by-name sym (current-buffer)))))