Lines Matching full:database
7 from autotest_lib.database import database_connection
15 'AUTOTEST_SERVER_DB': os.path.join(_AUTODIR, 'database',
21 """Represents a database migration."""
85 """Managest database migrations."""
115 """Gets the database name."""
120 """Executes a database query.
132 """Executes a set of database queries.
167 """Sets the database version.
169 @param version: The version to which to set the database.
179 """Gets the database version.
181 @return The database version.
196 @param minimum_version: The minimum database version.
197 @param maximum_version: The maximum database version.
241 @param version: The version to which to migrate the database.
267 """Initialize the AFE database.
282 """Confirms with the user that we should initialize the database.
289 'Your %s database does not appear to be initialized. Do you '
297 """Gets the latest database version."""
303 """Migrates the database to the latest version."""
309 """Initializes a test database."""
315 self.execute('CREATE DATABASE ' + test_db_name)
322 """Removes a test database."""
324 self.execute('DROP DATABASE ' + self.get_db_name())
339 @param version: The version to which to migrate the database,
350 """Migrates the database.
352 @param version: The version to which to migrate the database.
355 print 'Migration starting for database', self.get_db_name()
361 """Create a fresh database and run all migrations on it.
363 @param version: The version to which to migrate the database.
382 @param version: The version to which to migrate the database.
401 """Initializes and fills up a test database."""
417 -d --database Which database to act on
426 parser.add_option("-d", "--database",
427 help="which database to act on",
428 dest="database",
435 manager = get_migration_manager(db_name=options.database,
468 @param db_name: The database name.
475 database = database_connection.DatabaseConnection(db_name)
476 database.debug = debug
477 database.reconnect_enabled = False
478 database.connect()
479 return MigrationManager(database, force=force)