$query = $db->select()->from('users'); $query->clearSelectColumns(); $query->columns(['id', 'name']);
$query = DB::table('users'); $query->clearSelectColumns(); $query->select(['id', 'name']);Package/Library: The package/library used for these examples is not specified. However, it is likely that these examples are part of an ORM library or a database abstraction layer built using PHP.